> On Jan 1, 2024, at 3:50 PM, Michael Van Canneyt <mich...@freepascal.org> 
> wrote:
> 
> You can't optimize that. As said, a generic is convenient but slow.

I don't know about that. Like was mentioned the enumerator needs to return a 
pointer, preferable without ^ so it feels like a record and only use that in 
the for-in scope. You can kind of do that yourself but it's cumbersome to 
maintain and missing from the RTL (maybe for this reason).

Regards,
Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to