RealyUniqueName / haxe

Haxe - The Cross-Platform Toolkit

Home Page:http://haxe.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Avoid excess unsets

RealyUniqueName opened this issue · comments

Right now unset() call is generated for each local variable declared inside of a loop.
This is not necessary if those vars are not captured by closure.
Generator behaviour should be changed to generate unset() only for vars captured in closures.