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-22 13:08:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: How pass a "null" as a parameter of anonymous access type References: <3ABA5AC3.4C6C7536@t-online.de> X-Newsreader: Tom's custom newsreader Message-ID: Date: Thu, 22 Mar 2001 21:02:12 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 985294932 24.20.190.201 (Thu, 22 Mar 2001 13:02:12 PST) NNTP-Posting-Date: Thu, 22 Mar 2001 13:02:12 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:6008 Date: 2001-03-22T21:02:12+00:00 List-Id: > Both a or b may be a null pointer, but Ada say "null not allowed for > anonymous access type". > Any idea what to do ? Make them non-anonymous access types. > I want call a C-binding procedure which is defined as "procedure p (a : > access X; b : access Y);" Instead use type a1 is access X; type b1 is access Y; procedure p(a : a1; b : b1); A variable of type a1 or b1 can be null.