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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e4e9809bdf82397f X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Newbie Access Types Date: 1999/08/27 Message-ID: <37c70029@news1.us.ibm.net>#1/1 X-Deja-AN: 517959971 Content-transfer-encoding: 7bit References: <7pe6tg$dqq$1@dailyplanet.wam.umd.edu> <37c45ac7@eeyore.callnetuk.com> X-Trace: 27 Aug 1999 21:16:25 GMT, 129.37.213.102 Organization: Global Network Services - Remote Access Mail & News Services X-Notice: should be reported to postmaster@ibm.net Content-Type: text/plain; charset="US-ASCII" Mime-version: 1.0 Newsgroups: comp.lang.ada X-Complaints-To: postmaster@ibm.net Date: 1999-08-27T00:00:00+00:00 List-Id: In article , Robert A Duff wrote: > Also, in Ada 95, we have anonymous access types (for parameters and > discriminants), and they have no null value, so it's not possible to > initialize such parameters to null. One thing I would have liked for inclusion is subtypes for named access types. That way you could declare a subtype that excludes null: type T_Access_Base is access all T; subtype T_Access is T_Access_Base range not null; -- or some other syntax It's occasionally necessary to have a parameter of a named access type, and at the same type require that a non-null value be passed in. It would be nice to have the compiler do the check, that we now have to do manually. -- Matt It is impossible to feel great confidence in a negative theory which has always rested its main support on the weak points of its opponent. Joseph Needham, "A Mechanistic Criticism of Vitalism"