comp.lang.ada
 help / color / mirror / Atom feed
From: keith@telesoft.UUCP.UUCP
Subject: Constraint_Error
Date: Fri, 10-Apr-87 16:47:28 EST	[thread overview]
Date: Fri Apr 10 16:47:28 1987
Message-ID: <8704102127.AA13425@sdcsvax.UCSD.EDU> (raw)


Well, if you want me to read the LRM to you:

3.5.4:12 "... in which case an attempt to assign the result to a variable
          of the integer subtype raises the exception CONSTRAINT_ERROR."

So from your original incorrect Ada "type x is range 0..100"; either
possible translation "subtype x is range 0..100" or
"type x is new integer range 0..100", the language standard clearly states
that assigning a value outside of the specified range (check 3.3.2:9) will
raise CONSTRAINT_ERROR.

Sorry for my earlier post.  I assumed you had read the manual.

Keith

             reply	other threads:[~1987-04-10 21:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1987-04-10 21:47 keith [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-04-07  0:00 Constraint error Nirmala Bhupathi
1999-04-07  0:00 ` Matthew Heaney
1999-04-07  0:00   ` Nirmala Bhupathi
1999-04-08  0:00     ` Matthew Heaney
2004-09-29 23:24 Constraint Error Rick Santa-Cruz
2004-09-30  0:42 ` Jeffrey Carter
2004-09-30  0:42 ` Stephen Leake
2004-09-30  1:11 ` tmoran
2004-09-30 13:47 ` John A. S. Rowlands
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox