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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: GNAT GPL 2013 bug? Date: Fri, 9 Aug 2013 13:36:00 +0200 Organization: cbb software GmbH Message-ID: References: <19fr4wmxmen$.gjbias2fj461$.dlg@40tude.net> <397030ce-b921-43d3-86ff-5cf0e68b5837@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: akU61YSCmz18VAS8AmGZtg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1751 Xref: number.nntp.dca.giganews.com comp.lang.ada:182875 Date: 2013-08-09T13:36:00+02:00 List-Id: On Fri, 9 Aug 2013 04:06:32 -0700 (PDT), sbelmont700@gmail.com wrote: > In 3.10~13.1/2: > > "In addition, the anonymous access subtype defined by the > access_definition for a controlling access parameter (see 3.9.2) excludes > null." > > So apparently yes, adding 'tagged' to Q should make it toss an exception. package P is type Q is private; procedure P (X : access Q) is null; ... end P; How does a client know if null is a valid value here? It could be private type Q is tagged null record; or private type Q is null record; Let I pass it to a generic: generic type T is private; with procedure P (X : access T) is <>; package Foo is How Foo is supposed to know if P should raise with null? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de