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