minor fixes
This commit is contained in:
@ -14,6 +14,8 @@ module Parfait
|
||||
super(0)
|
||||
@name = name
|
||||
end
|
||||
attr_reader :name
|
||||
|
||||
# this is a sof check if there are instance variables or "structure"
|
||||
# have to override false, as word answers true
|
||||
def is_value?
|
||||
|
@ -1,4 +1,4 @@
|
||||
module Virtual
|
||||
module Parfait
|
||||
|
||||
# TODO : rethink - possibly needs to be a module to be mixed into Object
|
||||
#
|
||||
|
@ -26,8 +26,8 @@ module Parfait
|
||||
@name = name
|
||||
@code = BinaryCode.new_object name
|
||||
@arg_names = arg_names
|
||||
@locals = []
|
||||
@tmps = []
|
||||
@locals = List.new
|
||||
@tmps = List.new
|
||||
end
|
||||
attr_reader :name , :arg_names , :for_class , :code
|
||||
|
||||
|
@ -19,7 +19,7 @@ module Parfait
|
||||
@instance_methods = List.new_object
|
||||
@name = name
|
||||
@super_class = superclass
|
||||
@meta_class = Virtual::MetaClass.new(self)
|
||||
@meta_class = MetaClass.new(self)
|
||||
end
|
||||
|
||||
def name
|
||||
@ -71,7 +71,7 @@ module Parfait
|
||||
|
||||
# get the method and if not found, try superclasses. raise error if not found
|
||||
def resolve_method m_name
|
||||
raise "uups #{m_name}.#{m_name.class}" unless m_name.is_a? Word
|
||||
raise "uups #{m_name}.#{m_name.class}" unless m_name.is_a?(Word) or m_name.is_a?(String)
|
||||
method = get_instance_method(m_name)
|
||||
return method if method
|
||||
if( @super_class )
|
||||
|
Reference in New Issue
Block a user