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-23 01:14:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-feed.riddles.org.uk!fr.clara.net!heighliner.fr.clara.net!grolier!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: Thierry Lelegard Newsgroups: comp.lang.ada Subject: Re: How pass a "null" as a parameter of anonymous access type Date: Fri, 23 Mar 2001 10:05:54 +0100 Organization: CANAL+ Technologies Message-ID: <3ABB11F2.C35C58FD@canal-plus.fr> References: <3ABA5AC3.4C6C7536@t-online.de> NNTP-Posting-Host: host227.canal-plus.fr MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------D18A9DF510AB8725DFEE6CA0" X-Trace: s1.read.news.oleane.net 985338355 29860 194.2.208.227 (23 Mar 2001 09:05:55 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 23 Mar 2001 09:05:55 +0000 (UTC) X-Sender: "Thierry Lelegard" (Unverified) X-Mailer: Mozilla 4.75 [fr]C-CCK-MCD C+ (WinNT; U) X-Accept-Language: en,fr,zh-CN,zh-TW Xref: supernews.google.com comp.lang.ada:6019 Date: 2001-03-23T10:05:54+01:00 List-Id: Il s'agit d'un message multivolet au format MIME. --------------D18A9DF510AB8725DFEE6CA0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > I want call a C-binding procedure which is defined as "procedure p (a : > access X; b : access Y);" > Both a or b may be a null pointer, but Ada say "null not allowed for > anonymous access type". > Any idea what to do ? A hack (it works with GNAT, but may not with others, not defined by the language): Null_Access : aliased X; -- don't access it !! for Null_Access'Address use System.Null_Address; .... P (Null_Access'Access, ...); -Thierry ____________________________________________________________________________ Thierry Lelegard, "The Jazzing Troll", Email: thierry.lelegard@canal-plus.fr CANAL+ Technologies, 34 place Raoul Dautry, 75516 Paris Cedex 15, France Tel: +33 1 71 71 54 30 Fax: +33 1 71 71 52 08 Mobile: +33 6 03 00 65 75 ____________________________________________________________________________ --------------D18A9DF510AB8725DFEE6CA0 Content-Type: text/x-vcard; charset=us-ascii; name="thierry.lelegard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Carte pour Thierry Lelegard Content-Disposition: attachment; filename="thierry.lelegard.vcf" begin:vcard n:Lel�gard;Thierry tel;cell:+33 6 03 00 65 75 tel;fax:+33 1 71 71 52 08 tel;work:+33 1 71 71 54 30 x-mozilla-html:FALSE url:www.canalplus-technologies.com org:Canal+ Technologies adr:;;34, Place Raoul Dautry;Paris;;75516;France version:2.1 email;internet:thierry.lelegard@canal-plus.fr fn:Thierry Lel�gard end:vcard --------------D18A9DF510AB8725DFEE6CA0--