comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: <comp.lang.ada@ada.eu.org>
Cc: "Dale Stanbrough" <dale@cs.rmit.edu.au>, <randhol@pvv.org>,
	<cyberlync@yahoo.com>
Subject: Re: A question and a request
Date: Wed, 7 Nov 2001 06:54:21 -0600
Date: 2001-11-07T06:54:21-06:00	[thread overview]
Message-ID: <mailman.1005137715.29380.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: slrn9ui901.em.randhol+abuse@kiuk0156.chembio.ntnu.no


----- Original Message ----- 
From: "Preben Randhol" <randhol+abuse@pvv.org>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: November 07, 2001 5:00 AM
Subject: Re: A question and a request


<snip>
> Use type not subtype if you do not want the above behavior. Read
> below (taken from:
> http://goanna.cs.rmit.edu.au/~dale/ada/aln/4_basic_types.htmli )
> 
> Subtypes
> 
> We can restrict the range of values a variable can take by declaring a
> subtype with a restricted range of values (this corresponds to Pascal's
> user defined types). Any attempt to place an out-of-range value into a
> variable of a subtype results in an exception (program error). In this
> way program errors can be discovered. The syntax for a subtype
> declaration is
> 
The above paragraph is simply wrong.  The excetpion which will be
raised is not Program_Error, but Constraint_Error.

As a further note to Dale (the prsumed author of the linked website),
there are spelling errors in the commentary on those pages.

<snip>




  reply	other threads:[~2001-11-07 12:54 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-06 16:45 List Container Straw Man Nick Roberts
2001-11-06 17:29 ` Stephen Leake
2001-11-06 18:25   ` Marin David Condic
2001-11-06 23:02     ` Nick Roberts
2001-11-07 19:49       ` Stephen Leake
2001-11-07 20:30         ` Marin David Condic
2001-11-07 23:58           ` Nick Roberts
2001-11-08  4:34             ` Jeffrey Carter
2001-11-08 10:45             ` Ehud Lamm
2001-11-08 19:09               ` Nick Roberts
2001-11-09 16:32                 ` Ted Dennison
2001-11-10  2:20                   ` Nick Roberts
2001-11-10 19:50                     ` Ehud Lamm
2001-11-11  3:48                       ` Nick Roberts
2001-11-08 10:41           ` Ehud Lamm
2001-11-08 19:20             ` Marin David Condic
2001-11-08 20:35               ` Ehud Lamm
2001-11-09 16:39             ` Ted Dennison
2001-11-08  0:06         ` Nick Roberts
2001-11-09 16:16           ` Stephen Leake
2001-11-09 16:24             ` Ehud Lamm
2001-11-09 16:52               ` Brian Rogoff
2001-11-09 18:04             ` Darren New
2001-11-09 20:05               ` Stephen Leake
2001-11-10  3:24             ` Nick Roberts
2001-11-06 23:52   ` Nick Roberts
2001-11-07  4:44     ` A question and a request Eric Merritt
2001-11-07 11:00       ` Preben Randhol
2001-11-07 12:54         ` David C. Hoos, Sr. [this message]
2001-11-08  2:35           ` dale
2001-11-07 13:24         ` Eric Merritt
2001-11-07 13:58       ` James Rogers
2001-11-07 16:32       ` Jeffrey Carter
2001-11-09 23:32       ` Matthew Heaney
     [not found] <3BE93E12.7BB33908@worldnet.att.net>
2001-11-07 17:38 ` Eric Merritt
replies disabled

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