[fpc-pascal] Writing generic enumerator
pascaldragon at googlemail.com
Tue Oct 11 09:45:45 CEST 2011
Am 11.10.2011 06:32, schrieb leledumbo:
> Is it possible to write one? Due to the nature of enumerator, the iterator
> and iterated class usually form mutual dependency. With normal classes, this
> is no problem as mutual dependency can be resolved with forward type
> declaration. But what if it's used with generic classes (and therefore
> generic enumerator)?
I don't know whether I understand your question correctly, but you can
take a look at the unit "fgl" which contains a few generic classes and
enumerators for them.
More information about the fpc-pascal