add set_internal

and the set_slot with register
very much like the get_slot for get_internal
This commit is contained in:
Torsten Ruger
2015-11-08 17:10:36 +02:00
parent ede7639861
commit c38775e933
5 changed files with 32 additions and 5 deletions

View File

@ -140,7 +140,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 , :get_internal ].each do |f|
[:main , :get_internal , :set_internal ].each do |f|
obj.add_instance_method Builtin::Object.send(f , nil)
end
obj = @space.get_class_by_name(:Kernel)