had to boot_classes outside constructor (unfortunately) because of recursion
This commit is contained in:
parent
7036a87678
commit
61e80d4f28
@ -21,7 +21,6 @@ module Virtual
|
|||||||
@main = Virtual::CompiledMethod.new("main" , [] )
|
@main = Virtual::CompiledMethod.new("main" , [] )
|
||||||
#global objects (data)
|
#global objects (data)
|
||||||
@objects = []
|
@objects = []
|
||||||
boot_classes! # boot is a verb here
|
|
||||||
@passes = [ Virtual::SendImplementation ]
|
@passes = [ Virtual::SendImplementation ]
|
||||||
end
|
end
|
||||||
attr_reader :main , :classes , :objects
|
attr_reader :main , :classes , :objects
|
||||||
@ -43,6 +42,7 @@ module Virtual
|
|||||||
@@space
|
@@space
|
||||||
else
|
else
|
||||||
@@space = BootSpace.new
|
@@space = BootSpace.new
|
||||||
|
@@space.boot_classes! # boot is a verb here
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user