comp.lang.ada
 help / color / mirror / Atom feed
From: "Stephane Richard" <stephane.richard@verizon.net>
Subject: Re: Another proposal for arrays (and other types)
Date: Thu, 02 Oct 2003 22:17:16 GMT
Date: 2003-10-02T22:17:16+00:00	[thread overview]
Message-ID: <Mt1fb.20333$541.16084@nwrdny02.gnilink.net> (raw)
In-Reply-To: MeOdnQj5zpBTqeGiU-KYuA@gbronline.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

"Wes Groleau" <groleau@freeshell.org> wrote in message
news:MeOdnQj5zpBTqeGiU-KYuA@gbronline.com...
> 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>;
>
> -- 
> Wes Groleau
> -----------
> I've been framed! ...
> http://www.useit.com/alertbox/9612.html
>

Yeah I believe I did see something like that before on this group :-)....and
I agree with it, I like this sytnax.

-- 
St�phane Richard
"Ada World" Webmaster
http://www.adaworld.com







  reply	other threads:[~2003-10-02 22:17 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 [this message]
2003-10-03 21:04 ` chris
replies disabled

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