passing compiler to to_mom, not method

To be able to delegate scope (block/method) things later
This commit is contained in:
Torsten Ruger
2018-07-05 14:02:38 +03:00
parent 16d91f24ce
commit 3f80953385
15 changed files with 78 additions and 74 deletions

View File

@@ -8,8 +8,11 @@ module Vool
@clazz = clazz
end
def to_mom( _ )
raise "should not be called (call create_objects)"
def to_mom( compiler )
# raise "should not be called (call create_objects)"
end
def slot_definition(compiler)
return Mom::SlotDefinition.new(Mom::IntegerConstant.new(1) , [])
end
def each(&block)