From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,287f73fa8b0c840d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!proxad.net!easynet-quince!easynet.net!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: <426d10d1$1_2@newsfeed.slurp.net> Subject: Re: Syntax question: new with a constrained subtype indication Date: Mon, 25 Apr 2005 18:02:40 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Message-ID: <426d20f8$1_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 25 Apr 2005 17:03:20 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1114448600 news.gradwell.net 38038 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:10692 Date: 2005-04-25T17:03:20+00:00 List-Id: 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