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,73f15dbe4ec16d06 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-03 13:23:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Adding "()" operator to Ada 200X Date: Tue, 3 Jun 2003 15:24:30 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <1ec946d1.0306021542.58714996@posting.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:38552 Date: 2003-06-03T15:24:30-05:00 List-Id: Frank J. Lhota wrote in message ... >"Matthew Heaney" wrote in message >news:1ec946d1.0306021542.58714996@posting.google.com... >> If you're going to make a change in the syntax of the language, then >> it has be because it allows you to do something you can't do already. >> For example, there's no way to declare an access subtype right now >> that means "all the access values except null." A useful language >> change would be to allow the declaration: >> >> type Element_Access_Base is access all Element_Type; >> >> subtype Element_Access is Element_Access_Base range not null; > >This is an interesting idea, and we should probably pursue it further in >another. Constraint checking has always been tremendously helpful. There is >one potential (but not insurmountable) problem with this proposal: in the >absence of explicit initializations, an access variable is initialized to >null. Already done. See AI-00231. (But there are some problems with doubly constrained subtypes, so it is not yet finished.) Randy.