[ruby-cvs:49606] ko1:r42464 (trunk): * proc.c: add Binding#local_variable_get/set/defined?
ko1 at ruby-lang.org
ko1 at ruby-lang.org
Fri Aug 9 18:51:01 JST 2013
ko1 2013-08-09 18:51:00 +0900 (Fri, 09 Aug 2013)
New Revision: 42464
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42464
Log:
* proc.c: add Binding#local_variable_get/set/defined?
to access local variables which a binding contains.
Most part of implementation by nobu.
* test/ruby/test_proc.rb: add a tests for above.
* vm.c, vm_core.h (rb_binding_add_dynavars): add a new function
to add a new environment to create space for new local variables.
Modified files:
trunk/ChangeLog
trunk/proc.c
trunk/test/ruby/test_proc.rb
trunk/vm.c
trunk/vm_core.h
More information about the ruby-cvs
mailing list