[haXe] using iterators in closures issue
Benjamin Dasnois
benjamin.dasnois at gmail.com
Thu Apr 20 21:24:13 CEST 2006
Well for the prononciation Nicolas, as you're as French as me I
thought we should pronounce it the french way o_O By the way while I'm
writing useless things... I wanted to thank you Nicolas and all the
Motion Twin's team because I've met some great people on Frutiparc ;-)
On 4/20/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> > 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
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
--
DASNOIS Benjamin
More information about the Haxe
mailing list