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:23:39 PST Path: nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!math.ohio-state.edu!scipio.cyberstore.ca!nntp.cs.ubc.ca!news.bc.net!vanbc.wimsey.com!news.mindlink.net!agate!howland.reston.ans.net!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:23:39 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3clofr$r1m@gnat.cs.nyu.edu> References: <1994Dec12.081230.24978@roxi.rz.fht-mannheim.de> <3chh6i$lp7@cnj.digex.net> NNTP-Posting-Host: gnat.cs.nyu.edu Date: 1994-12-13T22:23:39-05:00 List-Id: Gentle's response to this question: : type stone is array (1..2) of character; : shapes: constant array (1..1) of stone := ("[]"); : ____________________________________________^ You're trying to squash a string of length 2 into a character space. Try initializing like this: shapes: constant array (1..1) of stone := (1 => ('[',']')); is wrong, it is perfectly fine to initialze an object of type stone with the string literal "[] " which is essentially identical to the aggregate ('[',']') the ONLY problem is the one element aggregate.