fix space layout and init
This commit is contained in:
parent
1170761922
commit
05a7ded7d5
@ -32,7 +32,7 @@ module Parfait
|
||||
#global objects (data)
|
||||
@objects = Parfait::List.new_object
|
||||
end
|
||||
attr_reader :classes , :objects , :symbols, :messages, :next_message , :next_frame
|
||||
attr_reader :classes , :objects , :frames, :messages, :next_message , :next_frame
|
||||
|
||||
# need a two phase init for the object space (and generally parfait) because the space
|
||||
# is an interconnected graph, so not everthing is ready
|
||||
|
@ -25,7 +25,9 @@ module Virtual
|
||||
value_classes = values.collect { |cl| @space.create_class(cl,nil) }
|
||||
layouts = { "Word" => [] ,
|
||||
"List" => [] ,
|
||||
"Space" => ["classes","objects"],
|
||||
"Message" => [],
|
||||
"Space" => ["classes","objects","frames","messages","next_message","next_frame"],
|
||||
"Frame" => ["locals" , "tmps" ],
|
||||
"Layout" => ["object_class"] ,
|
||||
"Class" => ["object_layout"],
|
||||
"Dictionary" => ["keys" , "values"] ,
|
||||
@ -63,7 +65,10 @@ module Virtual
|
||||
o.init_layout
|
||||
end
|
||||
# and go through the space instance variables which get created before the object list
|
||||
|
||||
@space.init_layout
|
||||
@space.classes.init_layout
|
||||
@space.objects.init_layout
|
||||
@space.late_init
|
||||
boot_functions!
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user