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-Thread: 103376,839916f6ca3b6404 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news2.arglkargh.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: not null Date: Thu, 05 Mar 2009 18:20:01 +0100 Organization: Jacob Sparre Andersen Message-ID: References: <49ae93bc$0$31872$9b4e6d93@newsspool3.arcor-online.net> <761a4fb8-de91-43b3-b420-55dbc06a61e7@k9g2000prh.googlegroups.com> <87eixcmk0e.fsf@nbi.dk> <4282b420-25a7-47d5-859e-427485dc8bbd@a5g2000pre.googlegroups.com> NNTP-Posting-Host: taasingegade.news.jacob-sparre.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: munin.nbi.dk 1236273601 19657 85.82.239.166 (5 Mar 2009 17:20:01 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 5 Mar 2009 17:20:01 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:AahnKyZQHhZcRFDWwAjtfH/nbqQ= Xref: g2news2.google.com comp.lang.ada:4946 Date: 2009-03-05T18:20:01+01:00 List-Id: Adam Beneschan wrote: > Jacob Sparre Andersen wrote: >> > Whatever mistakes a programmer could in the actual Ada language >> > make by forgetting to check whether an access value is null, he >> > could make in the above example by forgetting to check the >> > Present discriminant. >> >> No. The _compiler_ checks the discriminant. The programmer will >> get a Constraint_Error if he tries to use "Ref" while "Present" is >> false. > > It also checks access values and raises Constraint_Error if they're > null, so I don't understand what your point is. Neither do I. Must have been sleepy. Greetings, Jacob -- A password should be like a toothbrush. Use it every day; change it regularly; and DON'T share it with friends.