diff --git a/lib/register/boot.rb b/lib/register/boot.rb index b1547beb..bd43b14a 100644 --- a/lib/register/boot.rb +++ b/lib/register/boot.rb @@ -153,7 +153,7 @@ 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 others to compile # TODO go through the virtual parfait layer and adjust function names to what they really are - space_class = space.get_class_by_name(:Space) + space_class = space.get_class space_class.instance_type.add_method Builtin::Space.send(:main, nil) obj = space.get_class_by_name(:Object) diff --git a/lib/vm/parfait/type.rb b/lib/vm/parfait/type.rb index e1104923..c1d3f320 100644 --- a/lib/vm/parfait/type.rb +++ b/lib/vm/parfait/type.rb @@ -139,7 +139,7 @@ module Parfait # index of the variable when using get_internal_word # (get_internal_word is 1 based and 1 is always the type) def variable_index( name ) - has = names.index_of(name) + has = @names.index_of(name) return nil unless has raise "internal error #{name}:#{has}" if has < 1 has