fixed, nay, hacked list problem

lists were in object space but not liked due to
equality returning true
This commit is contained in:
Torsten Ruger
2015-06-08 11:52:56 +02:00
parent 5b3045e42a
commit 0122585b3b
3 changed files with 11 additions and 2 deletions

View File

@ -3,8 +3,8 @@ require_relative "type"
module Positioned
def position
if @position.nil?
str = "IN machine #{Virtual.machine.objects.include?(self)}\n"
raise str + "position not set for #{self.class} at #{word_length} for #{self.inspect[0...100]}"
str = "IN machine #{Virtual.machine.objects.include?(self)}, at #{self.object_id.to_s(16)}\n"
raise str + "position not set for #{self.class} len #{word_length} for #{self.inspect[0...100]}"
end
@position
end