You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Array.iterator() is not a haxe.iterators.ArrayIterator #5
Status: needs a change in Haxe's standard library or generator (label needs haxe). Not fixable cleanly in libhxcpp.
Haxe's std/Array.hx (4.3.7, line 280) declares @:runtime inline function iterator():haxe.iterators.ArrayIterator<T>. Statically typed calls are inlined to new haxe.iterators.ArrayIterator(this). Calls through Iterable dispatch to the runtime's Array_obj::iterator (include/Array.h:1027), which returns the native hx::ArrayIterator.
haxe.iterators.ArrayIterator is a generated class: the runtime can't name it, and it's only compiled into programs that use it. A runtime-only fix would have to look the class up by name at run time and fall back when it isn't linked, which is fragile. The fix belongs on the Haxe side, for example by having the dynamic iterator field resolve to the Haxe implementation, or by not promising haxe.iterators.ArrayIterator as the dynamic return type.
Activity
dimensionscape commentedon Oct 19, 2026
Status: needs a change in Haxe's standard library or generator (label
needs haxe). Not fixable cleanly in libhxcpp.Haxe's
std/Array.hx(4.3.7, line 280) declares@:runtime inline function iterator():haxe.iterators.ArrayIterator<T>. Statically typed calls are inlined tonew haxe.iterators.ArrayIterator(this). Calls throughIterabledispatch to the runtime'sArray_obj::iterator(include/Array.h:1027), which returns the nativehx::ArrayIterator.haxe.iterators.ArrayIteratoris a generated class: the runtime can't name it, and it's only compiled into programs that use it. A runtime-only fix would have to look the class up by name at run time and fall back when it isn't linked, which is fragile. The fix belongs on the Haxe side, for example by having the dynamiciteratorfield resolve to the Haxe implementation, or by not promisinghaxe.iterators.ArrayIteratoras the dynamic return type.