assembles more already
This commit is contained in:
@ -15,7 +15,7 @@ module Parfait
|
||||
@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?
|
||||
@ -24,5 +24,9 @@ module Parfait
|
||||
def to_s
|
||||
"BinaryCode #{@name}"
|
||||
end
|
||||
|
||||
def == other
|
||||
self.object_id == other.object_id
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -28,6 +28,10 @@ module Parfait
|
||||
@object_class = object_class
|
||||
end
|
||||
|
||||
def == other
|
||||
self.object_id == other.object_id
|
||||
end
|
||||
|
||||
# add the name of an instance variable
|
||||
# The index will be returned and can subsequently be searched with index_of
|
||||
# The index of the name is the index of the data in the object
|
||||
|
@ -61,7 +61,7 @@ module Parfait
|
||||
index = has_local name
|
||||
return index if index
|
||||
@locals.push name
|
||||
@locals.length
|
||||
@locals.get_length
|
||||
end
|
||||
|
||||
def get_var name
|
||||
|
@ -23,6 +23,10 @@ module Parfait
|
||||
object
|
||||
end
|
||||
|
||||
def == other
|
||||
self.object_id == other.object_id
|
||||
end
|
||||
|
||||
def get_type_of( index )
|
||||
type_word = internal_object_get( TYPE_WORD )
|
||||
res = type_word >> (index*4)
|
||||
|
Reference in New Issue
Block a user