adds self reference and improve methods a little

This commit is contained in:
Torsten Ruger
2014-07-14 14:29:33 +03:00
parent db8b1488d0
commit c7c4387e16
7 changed files with 27 additions and 10 deletions

View File

@ -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