comp.lang.ada
 help / color / mirror / Atom feed
From: chris <spamoff.danx@ntlworld.com>
Subject: Re: Another proposal for arrays (and other types)
Date: Fri, 03 Oct 2003 22:04:25 +0100
Date: 2003-10-03T22:04:25+01:00	[thread overview]
Message-ID: <vqlfb.6056$QH3.203@newsfep4-winn.server.ntli.net> (raw)
In-Reply-To: <MeOdnQj5zpBTqeGiU-KYuA@gbronline.com>

Wes Groleau wrote:
> I think this has already been proposed by someone else:
> 
> Generalize the declaration of default values on types.
> 
>   type Ant is range Min .. Max := (Min + Max ) / 2;
> 
>   type Primary is (Blue, Yellow, Red) := Blue;
> 
>   type List is array (Some_Discrete)
>             of Thing := <any legal aggregate or entity>;

I like it.  It'd give people a chance to control the defaults for a 
given type, and that'd be a good thing!




      parent reply	other threads:[~2003-10-03 21:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-02 14:23 Another proposal for arrays (and other types) Wes Groleau
2003-10-02 22:17 ` Stephane Richard
2003-10-03 21:04 ` chris [this message]
replies disabled

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