[fpc-devel] for .. in documentation and classes based iterators.
Marco van de Voort
fpc at pascalprogramming.org
Tue Sep 3 13:09:49 CEST 2019
Op 2019-09-03 om 12:59 schreef Michael Van Canneyt:
>
>> "5. Any type for which an enumerator operator is defined. The
>> enumerator operator must return a structured type that implements the
>> IEnumerator interface. The type of the control variable’s type must
>> equal the type of the enumerator’s GetCurrent return value type."
>>
>> but maybe that could be said more explicitly?
>
> What should be said more explicitly ?
What does the delphi duck typing method getenumerator():TIterator; do
with the iterator if it is of a classtype (not interface)? Where does it
fit in the 5 cases outlined in the documentation article? Probably 5,
but that only talks about the enumerator operator.
More information about the fpc-devel
mailing list