Sergei Gorelkin wrote:

Probably yes. A possibility to use any type which has certain methods/operators instead looks attractive, but I'm afraid it would be hard to fit that into existing compiler model.

Sorry, what is TIterator? Is this like to the previosly suggested

TIterator = interator(<Type>, MoveNext, Current)
end;

Btw, we can use some new 'enumerator'/'iterator' directive to mark methods which return enumerators.

And only in delphi mode we will search for the GetEnumerator method.

Best regards,
Paul Ishenin.

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to