fixes simple argument passing

This commit is contained in:
Torsten Ruger
2017-04-16 11:39:21 +03:00
parent 0d43987005
commit d2fba19b95
4 changed files with 89 additions and 39 deletions

View File

@ -10,7 +10,6 @@ module Vool
def collect(arr)
@receiver.collect(arr)
@arguments.each do |arg|
puts "ARG#{arg}"
arg.collect(arr)
end
super
@ -42,7 +41,7 @@ module Vool
pops = [Mom::SlotConstant.new([:message , :next_message , :receiver] , @receiver) ]
@arguments.each_with_index do |arg , index|
arg_target = [:message , :next_message , :arguments]
pops << Mom::SlotConstant.new( arg_target + index , @arg)
pops << Mom::SlotConstant.new( arg_target << index , arg)
end
pops
end