[haXe] using iterators in closures issue
Nicolas Cannasse
ncannasse at motion-twin.com
Thu Apr 20 19:09:43 CEST 2006
> Hi list,
>
> I appears that haXe doesn't properly embed iterator variables in
> closures. For instance, the following code outputs "undefined
> undefined" (separated by a line break):
>
> class Foo {
> public static function main():Void {
>
> var arr = ["foo" , "bar"];
> for (obj in arr) {
> var func = function() { trace(obj); };
> func();
> }
> }
> }
Yes that's a problem with Flash only (Server/Neko and JS are working
fine). Will work on it.
> By the way, just wondering -- how do you pronounce haXe? :)
My personal choice is "ex", but it might depends on your native
language. After MTASC ("emmetask") I was feeling that it's funny to see
this kind of question, hense another difficult-to-pronounce project name :)
Nicolas
More information about the Haxe
mailing list