vool working after message change

This commit is contained in:
2019-08-22 21:24:02 +03:00
parent 0a1b05b2ee
commit 0c49612e5e
10 changed files with 45 additions and 16 deletions

View File

@ -46,10 +46,10 @@ module Vool
def message_setup(compiler,called_method)
setup = Mom::MessageSetup.new( called_method )
mom_receive = @receiver.to_slot(compiler)
arg_target = [:message , :next_message , :arguments]
arg_target = [:message , :next_message ]
args = []
@arguments.each_with_index do |arg , index| # +1 because of type
args << Mom::SlotLoad.new(self, arg_target + [index + 1] , arg.to_slot(compiler))
args << Mom::SlotLoad.new(self, arg_target + ["arg#{index+1}".to_sym] , arg.to_slot(compiler))
end
setup << Mom::ArgumentTransfer.new(self, mom_receive , args )
end