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=unavailable autolearn_force=no version=3.4.4 Path: backlog1.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.stack.nl!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: "NULL" returned by a function Date: Fri, 08 Aug 2014 15:50:12 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 8 Aug 2014 22:50:13 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="a0c81a81d1281113b3831cf0c04e791a"; logging-data="17494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/mG082ug/ryEzey9V3yo+Smz0FqPR045w=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:w5am+MkVwg2ejQQ7QmnmiPZs0w4= Xref: number.nntp.dca.giganews.com comp.lang.ada:188295 Date: 2014-08-08T15:50:12-07:00 List-Id: On 08/08/2014 03:04 PM, Victor Porton wrote: > > But should I use a variant record EVEN IN THE CASE IF my data type T allows > to store null values in it? Probably not. But if you're writing Ada, and not pointer-heavy-language-in-Ada, then you're unlikely to be using access types. -- Jeff Carter "We call your door-opening request a silly thing." Monty Python & the Holy Grail 17