TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Content-Transfer-Encoding:
8BIT
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Date:
Wed, 9 Jul 2003 19:09:28 +0200
Content-Type:
text/plain; charset=ISO-8859-1
MIME-Version:
1.0
Reply-To:
Parts/Attachments:
text/plain (29 lines)
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]

ATOM RSS1 RSS2