rename self to receiver

just because it is a keyword and can’t be used
This commit is contained in:
Torsten Ruger
2018-03-14 20:26:13 +05:30
parent 2533842204
commit 03a4e04f7e
10 changed files with 20 additions and 14 deletions

View File

@ -21,7 +21,7 @@ module Mom
# The first element is either a known type name (Capitalized symbol of the class name) ,
# or the symbol :message
# And subsequent symbols must be instance variables on the previous type.
# Examples: [:message , :self] or [:Space : :next_message]
# Examples: [:message , :receiver] or [:Space : :next_message]
#
# @right: depends on the derived Class
#

View File

@ -2,8 +2,14 @@ module Mom
#SlotMove is a SlotLoad where the right side is a slot, just like the left.
class SlotMove < SlotLoad
def to_risc(compiler)
def initialize(left , right)
right = SlotDefinition.new(right.shift , right) if right.is_a? Array
super(left , right)
end
def to_risc(context)
Risc::Label.new(self,"SlotMove")
end
end
end