kernel functions are not fixed to be Object functions

This commit is contained in:
Torsten Ruger
2014-05-31 16:19:44 +03:00
parent a6f02d6be3
commit cdfc1ac891
3 changed files with 4 additions and 3 deletions

View File

@ -8,6 +8,7 @@ module Ast
end
def compile context , into
params = args.collect{ |a| a.compile(context, into) }
#TOOD, this needs dynamic resolution
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)