[vm/ffi] Pointer<T extends Struct> should expose an Iterable #46560
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
Uh oh!
There was an error while loading. Please reload this page.
Having a struct definition, a pointer and an item count, it felt convenient to work with an iterator instead of elementAt and ref calls. I started with:
However, for the elementAt call, the compiler says T must be a compile-time constant.
Can this be made possible on userland? If not, would you consider implementing it on the sdk?
@dcharkes
The text was updated successfully, but these errors were encountered: