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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,502eafcf316bcb10 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-12-16 08:41:09 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!koriel!lll-winken.llnl.gov!uwm.edu!spool.mu.edu!howland.reston.ans.net!math.ohio-state.edu!news.acns.nwu.edu!ftpbox!mothost!delphinium.cig.mot.com!ferret!leschkes From: leschkes@ferret.cig.mot.com (Scott Leschke) Newsgroups: comp.lang.ada Subject: Re: Ada can't initialize (aggregate) array of length 1? Date: 16 Dec 94 16:41:09 GMT Organization: Motorola Cellular Infrastructure Group Message-ID: References: <1994Dec12.081230.24978@roxi.rz.fht-mannheim.de> <3clobf$r0p@gnat.cs.nyu.edu> NNTP-Posting-Host: ferret.rtsg.mot.com Date: 1994-12-16T16:41:09+00:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) writes: >"I use GNAT v 2.0 on OS/2" >really? that's surprising, because GNAT goes out of its way to give >a clear error message here: > 1. procedure k is > 2. type stone is array (1..2) of character; > 3. shapes: constant array (1..1) of stone := ("[]"); > | > >>> positional aggregate cannot have one component > 4. begin > 5. null; > 6. end; >and that's exactly right, the fix is to make the aggregate named > (1 => "[]") I was always under the understanding that positional notation was ambiguous for the length 0 and 1 cases. If this is so, how can GNAT display a non-mabiguous messsage? Is ambiguous too strong a statement here ? Maybe that's where I'm confused ? Scott Leschke -- Scott Leschke