> > TShiftState is defined as TShiftState = set of (...);
> > 
> > How can I iterate through the enums? If not, can we split and add an
> > enum:
> > 
> > TShiftStateEnum = (...)
> > TShiftState = set of TShiftStateEnum;
> > 
> > ?
> 
> Of course that is possible. It requires some imagination though (and a feel
> for obfuscated Pascal)


The example fails in Delphi 6 btw, but works in FPC :-)
Delphi does not allow low/high on sets

(I vote to keep this FPC extension btw)

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

Reply via email to