comp.lang.ada
 help / color / mirror / Atom feed
* Another proposal for arrays (and other types)
@ 2003-10-02 14:23 Wes Groleau
  2003-10-02 22:17 ` Stephane Richard
  2003-10-03 21:04 ` chris
  0 siblings, 2 replies; 3+ messages in thread
From: Wes Groleau @ 2003-10-02 14:23 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-03 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox