rename the objects accessor

and move to object keys, not object_id
This commit is contained in:
Torsten Ruger
2018-06-15 09:18:39 +03:00
parent 3cc9175efa
commit 2c765c8f14
8 changed files with 18 additions and 15 deletions

View File

@ -30,7 +30,7 @@ module Risc
# Objects are data and get assembled after functions
def self.add_object( objekt , depth)
return false if @objects[objekt.object_id]
return false if @objects[objekt]
return true if objekt.is_a? Fixnum
return true if objekt.is_a?( Risc::Label)
#puts message(objekt , depth)
@ -39,7 +39,7 @@ module Risc
raise "adding non parfait #{objekt.class}:#{objekt}"
end
#raise "Method #{objekt.name}" if objekt.is_a? Parfait::TypedMethod
@objects[objekt.object_id] = objekt
@objects[objekt] = objekt
true
end