greg-dove commented on issue #977: URL: https://github.com/apache/royale-asjs/issues/977#issuecomment-737453760
Actually @Harbs , I already added support for this type of thing to the compiler. We already have this working with BinaryData and org.apache.royale.collections.IArrayList @estanglerbm I don't have time to check now, but you could try adding: ` [RoyaleArrayLike(getValue="getItemAt",setValue="setItemAt",setterArgSequence="value,index",length="length",lengthAccess="getter")]` To the top of ListCollectionView and then rebuilding MXRoyale swc. This enhances the for each loops and also recognises numeric array index access and assignment, and generates the getItemAt/setItemAt code for that, with no actual runtime overhead. But only if the compiler knows it is of the correct type. I would prefer to test that myself before recommending it but I don't have time right now, sorry. If it doesn't work, I can look into it this coming weekend ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
