[fpc-devel] "case" with range stupidities
Daniël Mantione
daniel.mantione at freepascal.org
Thu Feb 15 14:36:25 CET 2007
Op Thu, 15 Feb 2007, schreef Vinzent Hoefler:
> Well, fair enough, but why is that I can declare a
>
> type
> Foo = array[byte] of Something;
>
> where the type name "byte" also indicates the range? Considering that
>
> type
> Foo = array[Low (byte) .. High (byte) of Something;
>
> is totally equivalent, the allowed usage of range types seems a little
> bit inconsistent...
Yes, but as I said, case labels are a set, not just a range:
const x=[0,1,5];
type foo=array[x] of something
...would again be rather weird.
Daniël
More information about the fpc-devel
mailing list