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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18957e94c9656029,start X-Google-Attributes: gid103376,public From: dana@runet.edu (Dana Eckart) Subject: Array aggregate problem in generic package Date: 1996/06/27 Message-ID: <4qu7al$ad5@colossus.runet.edu>#1/1 X-Deja-AN: 162378334 organization: Radford University newsgroups: comp.lang.ada Date: 1996-06-27T00:00:00+00:00 List-Id: I'm getting the error message: 48: dynamic or empty choice in aggregate must be the only choice using gnatmake on the following code (package specification): generic Number_Of_Bits : Positive; package Binary is type BinaryNumber is private; BinaryOne : constant BinaryNumber; procedure Decimal2Binary (Source : Integer; Target : out BinaryNumber); procedure Put(Number : BinaryNumber); private type BinaryNumber is array (Integer range 1..Number_Of_Bits) of Boolean; BinaryOne : constant BinaryNumber := (Number_Of_Bits => True, others => False); -- -- The error is with respect to this array aggregate. -- end Binary; Any ideas? Please e-mail as I don't always get a chance to read this group. Thanks in advance. -- J Dana Eckart, PhD, PP-RH, KA4EVL | It's so nice to be insane, dana@runet.edu | no one asks you to explain. http://www.cs.runet.edu/~dana | -- Helen Reddy