This will happen to work:
https://gist.github.com/back2dos/6613772
Things to note:
1. If you generate local variables, try to make sure they don't
conflict with other expressions (hence the "__").
2. Cache the target (ethis) in a variable. Imagine you were to write
`expensiveQuery().signal.dispatch(1)` then the generated code will
execute `expensiveQuery()` with every iteration of the loop.
3. The need to write `static` at that point is most likely a bug in
the implementation of abstracts. Simn has committed some stuff
regarding using and macros, which may have fixed that as well. You
might want to to try the github version. If the problem persists, it'd
would be great if you could file an issue.
Regards,
Juraj
> --
> To post to this group
haxe...@googlegroups.com
>
http://groups.google.com/group/haxelang?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Haxe" group.
> For more options, visit
https://groups.google.com/groups/opt_out.