rubyx/lib/vool/local_assignment.rb
Torsten Rüger d5625a70d7 fix a whole bunch of vool to_mom
All but those requiring boot functions
2019-08-07 15:09:26 +03:00

15 lines
317 B
Ruby

module Vool
class LocalAssignment < Assignment
def to_mom( compiler )
slot_def = compiler.slot_type_for(@name)
to = Mom::SlotDefinition.new(:message ,slot_def)
from = @value.slot_definition(compiler)
return chain_assign( Mom::SlotLoad.new(self,to,from) , compiler)
end
end
end