Fix if statements hoisting, now that send is working

Same same, just have to remembe to actually execute the condition if it is a send
Having send a possible expression, removes one tmp variable and associated move, for a little extra work.
Next return and assign (rest)
This commit is contained in:
2019-08-16 18:42:57 +03:00
parent dee1e24c28
commit e6c30d98fb
11 changed files with 80 additions and 37 deletions

View File

@ -28,8 +28,8 @@ module Vool
def add_ivar( array )
array << @name
end
def to_s
"@#{name}"
def to_s(depth = 0)
at_depth(depth , "@#{name}")
end
end