summaryrefslogtreecommitdiffstats
path: root/ruby.1
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-02 09:47:55 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-02 09:47:55 +0000
commit1b7c50a6b849135f4f34a199853ec797ed3b85af (patch)
tree2d424c6f8326ed1c3197d67627e4b60752ae3d2e /ruby.1
parent441c153a6ac3c4d110f43e60dee3bc8a901558ad (diff)
downloadruby-1b7c50a6b849135f4f34a199853ec797ed3b85af.tar.gz
ruby-1b7c50a6b849135f4f34a199853ec797ed3b85af.tar.xz
ruby-1b7c50a6b849135f4f34a199853ec797ed3b85af.zip
* vm.c (eval_get_cvar_base): destination for class variable access
is now strictly innermost surrounding class or module. warned if accessed from toplevel. * variable.c (rb_cvar_get): new class variable look-up scheme: 1) look up in the class. 2) if the class is singleton attached to a class (i.e. metaclass) then start look up in the attached class and its ancestors. 3) otherwise, look-up in ancestors of the class. * eval.c (cvar_cbase): destination for class variable access is the class/module that holds the method, or cbase outside of methods. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.1')
0 files changed, 0 insertions, 0 deletions