comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <groleau@freeshell.org>
Subject: Another proposal for arrays (and other types)
Date: Thu, 02 Oct 2003 09:23:20 -0500
Date: 2003-10-02T09:23:20-05:00	[thread overview]
Message-ID: <MeOdnQj5zpBTqeGiU-KYuA@gbronline.com> (raw)

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




             reply	other threads:[~2003-10-02 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-02 14:23 Wes Groleau [this message]
2003-10-02 22:17 ` Another proposal for arrays (and other types) Stephane Richard
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