adds self reference and improve methods a little
This commit is contained in:
@ -34,6 +34,7 @@ module Ast
|
||||
# otherwise it's a method without args and a send is ussued.
|
||||
# this makes the namespace static, ie when eval and co are implemented method needs recompilation
|
||||
def compile frame , method
|
||||
return Virtual::SelfReference.new() if name == :self
|
||||
if method.has_var(name)
|
||||
frame.compile_get(method , name )
|
||||
else
|
||||
|
Reference in New Issue
Block a user