move main to space

This commit is contained in:
Torsten Ruger
2015-11-30 16:09:12 +02:00
parent 707c180cab
commit dc560aaa5e
6 changed files with 31 additions and 15 deletions

View File

@ -140,8 +140,10 @@ module Register
# very fiddly chicken 'n egg problem. Functions need to be in the right order, and in fact we
# 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
@space.get_class_by_name(:Space).add_instance_method Builtin::Space.send(:main, nil)
obj = @space.get_class_by_name(:Object)
[:main , :get_internal_word , :set_internal_word ].each do |f|
[ :get_internal_word , :set_internal_word ].each do |f|
obj.add_instance_method Builtin::Object.send(f , nil)
end
obj = @space.get_class_by_name(:Kernel)