[fpc-pascal] For..in enumerator for generic records?
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Wed Nov 30 12:24:08 CET 2016
On 2016-11-30 04:03, Ryan Joseph wrote:
> I have a generic record I would like to enumerate using for..in loops.
Maybe generics are redefining this, but a record (as I understand it) is
something like
TMyRec = record
StrField: string;
IntField: integer;
BoleanField: boolean;
end;
What would you iterate/enumerate in that? I can understand iterating an
"array of TMyRec", but not TMyRec itself.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
More information about the fpc-pascal
mailing list