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-13 19:21:19 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!utcsri!newsflash.concordia.ca!news.mcgill.ca!mcrcim.mcgill.edu!bloom-beacon.mit.edu!gatech!swiss.ans.net!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: dewar@cs.nyu.edu (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Ada can't initialize (aggregate) array of length 1? Date: 13 Dec 1994 22:21:19 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3clobf$r0p@gnat.cs.nyu.edu> References: <1994Dec12.081230.24978@roxi.rz.fht-mannheim.de> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1994-12-13T22:21:19-05:00 List-Id: "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 => "[]")