From: "Peter C. Chapin" <PChapin@vtc.vsc.edu>
Subject: Re: Single element arrays as function parameters
Date: Sat, 11 Jun 2011 07:28:02 -0500
Date: 2011-06-11T07:28:02-05:00 [thread overview]
Message-ID: <Q7udnaOaorPPwm7Q4p2dnAA@giganews.com> (raw)
In-Reply-To: 86ei31v43e.fsf@gareth.avalon.lan
On Fri, 10 Jun 2011 22:11:49 +0200, Mart van de Wege wrote:
> If I look at the language documentation, I'm guessing that this is
> because a single element array does not get recognised as being of type
> MM_Subtype, which is defined as
>
> type MM_Subtype is array(Natural range <>) of Possible_MM_Subtype;
>
> What *is* the best way to store an attribute which may be either a
> single enumeration element or a list of enumeration elements?
What about qualifying the aggregate:
MM_Subtype'(Dwarf)
Peter
next prev parent reply other threads:[~2011-06-11 12:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-10 20:11 Single element arrays as function parameters Mart van de Wege
2011-06-10 20:54 ` J-P. Rosen
2011-06-10 21:28 ` Mart van de Wege
2011-06-10 21:58 ` Adam Beneschan
2011-06-10 22:24 ` Mart van de Wege
2011-06-11 12:28 ` Peter C. Chapin [this message]
2011-06-13 14:49 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox