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

Marco van de Voort marcov at stack.nl
Wed Nov 4 14:54:35 CET 2009


In our previous episode, Alexander Klenin said:
> > ? WriteLn(ch);
> > ? inc(ch);
> >
> > But it fails the same way.
> 
> ch := succ(ch);
> 
> OTOH, I am not sure -- obviously either Succ or Inc is buggy, but which one?
> Maybe runtime instead of compile-time error is actually correct?

Sparse enums are simply a kludge. They were needed because they exist in the
Windows API, and afaik for that only. IOW for easy translation of Windows
types.

I wouldn't assume that all rules for enums apply to sparse ones too.



More information about the fpc-devel mailing list