comp.lang.ada
 help / color / mirror / Atom feed
From: dana@runet.edu (Dana Eckart)
Subject: Array aggregate problem in generic package
Date: 1996/06/27
Date: 1996-06-27T00:00:00+00:00	[thread overview]
Message-ID: <4qu7al$ad5@colossus.runet.edu> (raw)

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




                 reply	other threads:[~1996-06-27  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox