[fpc-devel] Re: Testing for..in feature

Michael Van Canneyt michael at freepascal.org
Thu Nov 5 17:25:01 CET 2009

On Thu, 5 Nov 2009, Paul Ishenin wrote:

> Michael Van Canneyt wrote:
>> Fair has nothing to do with it. Enums with jumps are an ugly hack,
>> and go against all that enumerateds stand for. They only ensure
>> some kind of type safety.
> Enums with jumps are hacks - agree.
> Fair has nothing to do with it - disagree.
>> and now, because you implemented it:
>> - No For in.
> Under you presure I saw no possibility to implement for-in loop for that 
> enums :) So I completely disabled for-in loop for them.

I think it is a wise decision. It's an ugly construct, and is not
worth the trouble (and I am convinced there would be more trouble
than we can currently see :( )


More information about the fpc-devel mailing list