From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d6b9730c211f2ef9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-03 13:59:08 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-winn.server.ntli.net.POSTED!53ab2750!not-for-mail From: chris User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030925 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Another proposal for arrays (and other types) References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 03 Oct 2003 22:04:25 +0100 NNTP-Posting-Host: 81.98.236.164 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep4-winn.server.ntli.net 1065214747 81.98.236.164 (Fri, 03 Oct 2003 21:59:07 BST) NNTP-Posting-Date: Fri, 03 Oct 2003 21:59:07 BST Organization: ntl Cablemodem News Service Xref: archiver1.google.com comp.lang.ada:173 Date: 2003-10-03T22:04:25+01:00 List-Id: 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 := ; I like it. It'd give people a chance to control the defaults for a given type, and that'd be a good thing!