renames SelfSlot to SelfsSlot

in the hope to make a little more distinction
This commit is contained in:
Torsten Ruger 2015-10-07 10:04:00 +03:00
parent f0611e52db
commit cc89e49a43
3 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ module Bosl
index = @clazz.object_layout.variable_index(field_name)
raise "field access, but no such field:#{field_name} for class #{@clazz.name}" unless index
value = Virtual::Return.new(:int)
@method.source.add_code Virtual::Set.new( Virtual::SelfSlot.new(index, :int ) , value )
@method.source.add_code Virtual::Set.new( Virtual::SelfsSlot.new(index, :int ) , value )
when :message
#message Slot
raise "message not yet"

View File

@ -8,12 +8,12 @@ module Virtual
# (and slots in the next_message by instances of NewSelf)
#
# 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
# If self is an Object one can refer to it's instance variables as Slots in SelfsSlot
#
# In Summary: class Self represents the self object and SelfSlot instances variables of
# In Summary: class Self represents the self object and SelfsSlot instances variables of
# that object
#
class SelfSlot < Slot
class SelfsSlot < Slot
def initialize index , type , value = nil
@index = index
super( type , value )

View File

@ -8,7 +8,7 @@ module Virtual
# Four known objects exist and those correspond to subclasses:
# - the message that has been received: MessageSlot
# - the frame of the method that is executing (local variables): FrameSlot
# - self as an object: SelfSlot
# - self as an object: SelfsSlot
# - a message that will be sent, NewMessageSlot
# additionally frame, self and return are slots in Message and NewMessage
@ -41,6 +41,6 @@ module Virtual
end
require_relative "message_slot"
require_relative "self_slot"
require_relative "selfs_slot"
require_relative "frame_slot"
require_relative "new_message_slot"