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,47ad7b1ec6646e16 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-27 08:18:33 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-FFM2.ecrc.net!news.siemens.de!news.mch.sbs.de!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: How pass a "null" as a parameter of anonymous access type Date: Tue, 27 Mar 2001 18:13:27 +0200 Organization: Siemens AG Message-ID: <3AC0BC27.E7BE38A@icn.siemens.de> References: <3ABA5AC3.4C6C7536@t-online.de> <3ABB11F2.C35C58FD@canal-plus.fr> <3ABE6443.4119AB52@t-online.de> NNTP-Posting-Host: 139.21.122.158 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:6121 Date: 2001-03-27T18:13:27+02:00 List-Id: Mark Lundquist wrote: > > Freddy wrote in message > news:3ABE6443.4119AB52@t-online.de... > > Thanks. I've tried it, but at runtime I always get a constraint_error > > (GNAT seems to check the passing of "null" values). > > Yes -- as any correct Ada compiler must do! > > The value "null" just does not exist for the type of the parameter. > > Now, you might be able use "pragma Suppress (Access_Check)" to defeat this. Does that prgma supress checks for the entire package or can it switched on/off by statement ?