[fpc-pascal] For..in enumerator for generic records?

Sven Barth pascaldragon at googlemail.com
Wed Nov 30 09:09:30 CET 2016


Am 30.11.2016 05:35 schrieb "Ryan Joseph" <ryan at thealchemistguild.com>:
>
> I have a generic record I would like to enumerate using for..in loops. Is
this even possible? I tried briefly and it wasn’t clear this was possible
so I thought I’d ask first. Thanks.
>

Take a look at packages/fcl-stl/src/gvector.pp, it's a generic vector
container that provides an enumerator.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161130/3daeab28/attachment.html>


More information about the fpc-pascal mailing list