diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 01:58:01 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-23 01:58:01 +0000 |
commit | 8a5b4ad1153ee725e30030963aa7787e683a8922 (patch) | |
tree | 3771a96251e53be36289d17bac7b6a70b3dd970e /load.c | |
parent | 5afb4b7b29878d3485beec300d690f9da2cdd4ee (diff) |
* load.c (rb_f_require): Add note to require for scope of items in the
loaded file. [ruby-trunk - #5910]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |