remove the last_object from chain

also tried to keep the first around as was done in space
partially to not have to add the consrtants seperately
didn't work, as chain gets broken
also this has to be redone anyway
This commit is contained in:
Torsten Ruger
2018-08-29 21:05:54 +03:00
parent c983dcf0eb
commit ea7f3c9653
5 changed files with 24 additions and 17 deletions

View File

@ -1,12 +1,10 @@
# Integer class for representing maths on Integers
# Integers are Objects, specifically DataObjects
# - they have fixed value
# - they are immutable
# (both by implementation, not design.
# Ie it would be possible to change the value, we just don't support that)
module Parfait
# Integer class for representing maths on Integers
# Integers are Objects, specifically DataObjects
# - they have fixed value
# - they are immutable
# (both by implementation, not design.
# Ie it would be possible to change the value, we just don't support that)
class Integer < Data4
attr :type, :next_integer
@ -55,6 +53,10 @@ module Parfait
#
# But the integer (address) needs to be adjusted by load address.
class ReturnAddress < Integer
def to_s
"ReturnAddress 0x#{object_id.to_s(16)}:#{value}"
end
end
# adding other base classes in here for now: