> I just tried this really quick and it doesn’t seem to work with records but
if I changed it to a class that worked.

Just as you can't declare next field to be a record when learning linked
list (well, we normally learned that some time in the past), the solution is
just the same here: declare and use pointer to the record instead. Using
classes, however, the pointer can be abstracted and you will have less messy
code.




--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/For-in-enumerator-for-generic-records-tp5726980p5726995.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to