let the BootClasses carry functions, ie one level squeezed between object_space and funtion, the class is coming to life
This commit is contained in:
@ -8,7 +8,7 @@ module Ast
|
||||
end
|
||||
def compile context , into
|
||||
params = args.collect{ |a| a.compile(context, into) }
|
||||
function = context.object_space.get_or_create_function(name)
|
||||
function = context.current_class.get_or_create_function(name)
|
||||
raise "Forward declaration not implemented (#{name}) #{inspect}" if function == nil
|
||||
call = Vm::CallSite.new( name , params , function)
|
||||
current_function = context.function
|
||||
|
Reference in New Issue
Block a user