diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | load.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Thu Feb 23 09:57:21 2012 Eric Hodel <drbrain@segment7.net> + + * load.c (rb_f_require): Add note to require for scope of items in the + loaded file. [ruby-trunk - #5910] + Thu Feb 23 03:58:08 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca> * lib/ostruct.rb (delete_field): Bug fix so previous value is @@ -469,6 +469,11 @@ load_unlock(const char *ftptr, int done) * * require "my-library.rb" * require "db-driver" + * + * Any constants or globals within the loaded source file will be available + * in the calling program's global namespace. However, local variables will + * not be propagated to the loading environment. + * */ VALUE |