[fpc-devel] "case" with range stupidities
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
> Foo = array[byte] of Something;
> where the type name "byte" also indicates the range? Considering that
> 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:
type foo=array[x] of something
...would again be rather weird.
More information about the fpc-devel