comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: HOW? item_ptr := item'access
Date: 2000/04/12
Date: 2000-04-12T00:00:00+00:00	[thread overview]
Message-ID: <8d1uhn$gc7$1@nnrp1.deja.com> (raw)
In-Reply-To: 38F34D00.FA32AC68@mindspring.com

In article <38F34D00.FA32AC68@mindspring.com>,
  Al Johnston <sofeise@mindspring.com> wrote:

>   procedure Close(Database : in out Database_Typ) is
>     t_DBase_Ptr : Database_Ptr_Typ := Database'access; <<< -----
> compiler complans
>   begin
>     PDB_C_Lib.pdb_close(t_DBase_Ptr);
>   end Close;
> end PDB;


So "Close" is only ever called from C? In that case, why not change that
parameter to "Database_Ptr : in Database_Ptr_Typ"? It does the same
thing from the C side, but gives you the type you need to work with on
the Ada side.


--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com http://www.deja.com/
Before you buy.




      reply	other threads:[~2000-04-12  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-11  0:00 HOW? item_ptr := item'access Al Johnston
2000-04-12  0:00 ` Ted Dennison [this message]
replies disabled

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