Peter Amey schrieb:
> The only surprise to me is that the error occurs at run-time; I would expect
> a compiler to spot the static out-of-range value during compilation.
That is because it is a legal program, which must be accepted by the compiler. A
helpful compiler would spot the problem and output a warning that
Constraint_Error will be raised.
>
> Peter
o _ _ _
--------- __o __o /\_ _ \\o (_)\__/o (_)
------- _`\<,_ _`\<,_ _>(_) (_)/<_ \_| \ _|/' \/
------ (_)/ (_) (_)/ (_) (_) (_) (_) (_)' _\o_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mein Radunfall
My bike accident
Christoph Grein
Mitglied von Ada-Deutschland, Ada-Europe
Member of Ada Germany, Ada Europe
http:/www.ada-deutschland.de
http:/www.ada-europe.org
http://home.T-Online.de/home/Christ-Usch.Grein
eMail: [log in to unmask]