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