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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to