comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: Syntax question:  new with a constrained subtype indication
Date: Mon, 25 Apr 2005 18:02:40 +0100
Date: 2005-04-25T17:03:20+00:00	[thread overview]
Message-ID: <426d20f8$1_1@glkas0286.greenlnk.net> (raw)
In-Reply-To: 426d10d1$1_2@newsfeed.slurp.net

James Alan Farrell wrote:
> The thing is, I've read 4.8 of the *annotated* ARM and I don't see
> anything to say I cannot do this.  So what am I missing?  Is there
> something, other than that document, that spells out the allowed types
> of constraint?

What about 4.8(4):

  "An initialized allocator is an allocator with a qualified_expression. An
   uninitialized allocator is one with a subtype_indication. In the
   subtype_indication of an uninitialized allocator, a constraint is
permitted
   only if the subtype_mark denotes an unconstrained composite subtype;
   if there is no constraint, then the subtype_mark shall denote a definite
   subtype."

Cheers

-- Martin





  parent reply	other threads:[~2005-04-25 17:02 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
2005-04-25 16:34 ` Martin Krischik
2005-04-25 19:03   ` James Alan Farrell
2005-04-25 17:02 ` Martin Dowie [this message]
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