[haXe] Re: as3 code generation error
Makc
makc.the.great at gmail.com
Thu Nov 19 05:46:53 CET 2009
On Thu, Nov 19, 2009 at 6:40 AM, Makc <makc.the.great at gmail.com> wrote:
> I am getting
> TypeError: Error #1006: iterator is not a function. at
> Hash/iterator()[Hash.as:45] for some reason...
>
here is offending code:
function($this:Hash) : * {
var $r : *;
$r = new Array();
for(var $k : String in $this.h) $r.push($k);
return $r;
}(this).iterator() // << throws here
obviously function (..){..}(this) returns Array, which does not have
any "iterator". what a hell is this supposed to be doing?
More information about the Haxe
mailing list