[Lazarus] errors: Upper bound of case range is less than lower bound and duplicate case label

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Mon Jan 21 22:47:14 CET 2013


Bart wrote:
> On 1/21/13, Sven Barth <pascaldragon at googlemail.com> wrote:
> 
>>> Should case of string really allow ranges?
>> THAT is an interesting question.
> 
> I think it should not.
> Ranges for strings are (countably) infinite, and this is (by design)
> not the case in the case of other cases (pun intended).

I can see that somebody thought is was a good idea, by analogy with (if 
not direct equivalence to) cardinals. But shouldn't embedded strings be 
subject to internationalisation? And what happens when

'Apples'..'Oranges': begin
                      end;

gets translated to French? :-)

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list