minor fixes
This commit is contained in:
parent
85eec2f3cb
commit
680fc7ecce
@ -153,7 +153,7 @@ module Register
|
|||||||
# very fiddly chicken 'n egg problem. Functions need to be in the right order, and in fact we
|
# 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
|
# 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
|
# 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)
|
space_class.instance_type.add_method Builtin::Space.send(:main, nil)
|
||||||
|
|
||||||
obj = space.get_class_by_name(:Object)
|
obj = space.get_class_by_name(:Object)
|
||||||
|
@ -139,7 +139,7 @@ module Parfait
|
|||||||
# index of the variable when using get_internal_word
|
# index of the variable when using get_internal_word
|
||||||
# (get_internal_word is 1 based and 1 is always the type)
|
# (get_internal_word is 1 based and 1 is always the type)
|
||||||
def variable_index( name )
|
def variable_index( name )
|
||||||
has = names.index_of(name)
|
has = @names.index_of(name)
|
||||||
return nil unless has
|
return nil unless has
|
||||||
raise "internal error #{name}:#{has}" if has < 1
|
raise "internal error #{name}:#{has}" if has < 1
|
||||||
has
|
has
|
||||||
|
Loading…
Reference in New Issue
Block a user