implement indexed object access

one of the few functions that can’t be coded
(or the design specifically is such that it can’t, in c it would be
self[index],
or, worse *(self + index) )
This commit is contained in:
Torsten Ruger
2015-11-07 17:36:28 +02:00
parent 35afe88ede
commit 708cdace17
2 changed files with 22 additions and 1 deletions

View File

@ -144,7 +144,7 @@ module Register
# have to define some dummies, just for the other to compile
# TODO go through the virtual parfait layer and adjust function names to what they really are
obj = @space.get_class_by_name(:Object)
[:main ].each do |f|
[:main , :get_internal ].each do |f|
obj.add_instance_method Builtin::Object.send(f , nil)
end
obj = @space.get_class_by_name(:Kernel)