comp.lang.ada
 help / color / mirror / Atom feed
From: Adrien Plisson <aplisson-news@stochastique.net>
Subject: Re: Syntax question:  new with a constrained subtype indication
Date: Mon, 25 Apr 2005 19:16:57 +0200
Date: 2005-04-25T19:16:57+02:00	[thread overview]
Message-ID: <426d2608$0$21878$ba620e4c@news.skynet.be> (raw)
In-Reply-To: <426d1d0e$1_2@newsfeed.slurp.net>

James Alan Farrell wrote:
> I hope I wont have 
> to read the *WHOLE* text to answer this one question -- it is too large 
> and I get lost and confused ;)

well, you will have to...
i found those two, defined in sections noted "legality rule":

ARM95 3.6.1 §5
"An index_constraint shall appear only in a subtype_indication whose 
subtype_mark denotes either an unconstrained array subtype, or an 
unconstrained access subtype whose designated subtype is an 
unconstrained array subtype; in either case, the index_constraint 
shall provide a discrete_range for each index of the array type."

ARM95 3.7.1 §7
"A discriminant_constraint is only allowed in a subtype_indication 
whose subtype_mark denotes either an unconstrained discriminated 
subtype, or an unconstrained access subtype whose designated subtype 
is an unconstrained discriminated subtype."

there is a similar paragraph for Fixed-point type (ARM95 3.5.9 §11), 
but strangely, i can't find one for Integer types, nor for real types...

-- 
rien



  reply	other threads:[~2005-04-25 17:16 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 15:44 Syntax question: new with a constrained subtype indication James Alan Farrell
2005-04-25 16:07 ` Alex R. Mosteo
2005-04-25 16:34   ` James Alan Farrell
2005-04-25 18:52     ` Martin Krischik
2005-04-26 14:17       ` James Alan Farrell
2005-04-25 16:18 ` Adrien Plisson
2005-04-25 16:37   ` James Alan Farrell
2005-04-25 17:16     ` Adrien Plisson [this message]
2005-04-25 16:34 ` Martin Krischik
2005-04-25 19:03   ` James Alan Farrell
2005-04-25 17:02 ` Martin Dowie
2005-04-25 17:22   ` Adrien Plisson
2005-04-25 23:28     ` Randy Brukardt
replies disabled

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