comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: How pass a "null" as a parameter of anonymous access type
Date: Thu, 22 Mar 2001 21:02:12 GMT
Date: 2001-03-22T21:02:12+00:00	[thread overview]
Message-ID: <oLtu6.1654$w46.192662@news1.frmt1.sfba.home.com> (raw)
In-Reply-To: 3ABA5AC3.4C6C7536@t-online.de

> 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.



  reply	other threads:[~2001-03-22 21:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-22 20:04 How pass a "null" as a parameter of anonymous access type Freddy
2001-03-22 21:02 ` tmoran [this message]
2001-03-25 21:32   ` Freddy
2001-03-26 14:31     ` How pass a Ted Dennison
2001-03-23  9:05 ` How pass a "null" as a parameter of anonymous access type Thierry Lelegard
2001-03-25 21:33   ` Freddy
2001-03-26 19:17     ` Mark Lundquist
2001-03-27 16:13       ` Alfred Hilscher
2001-03-27 16:53       ` Thierry Lelegard
2001-03-26 13:44 ` Marc A. Criley
2001-03-26 19:35   ` Mark Lundquist
2001-03-27 12:59     ` Marc A. Criley
2001-03-27 16:12       ` Alfred Hilscher
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox