rubyx/lib/virtual/slots/self_slot.rb
Torsten Ruger 5ce7b6c7c9 removing those ugly slot index constants
The constants were bad enough,
but they were also at the wrong level

Now register level is defining mappings from
symbol names to indexes, by using the layout
2015-06-29 10:55:22 +03:00

22 lines
753 B
Ruby

module Virtual
# Self (the receiver of the current message) is a Slot in the Message.
# The current self in the current message and if the current message
# want to send a message it puts the new self into the next_message.
#
# The slot in the Message is represented by instances of class Self
# (and slots in the next_message by instances of NextSelf)
#
# Additionally the current Self is represented as it's own top-level object.
# If self is an Object one can refer to it's instance variables as Slots in SelfSlot
#
# In Summary: class Self represents the self object and SelfSlot instances variables of
# that object
#
class SelfSlot < Slot
def initialize type = Unknown, value = nil
super
end
end
end