comp.lang.ada
 help / color / mirror / Atom feed
From: "Grein, Christoph" <christoph.grein@eurocopter.com>
Subject: Re: newbie to generic
Date: Fri, 17 May 2002 11:26:57 +0200 (MET DST)
Date: 2002-05-17T11:26:57+02:00	[thread overview]
Message-ID: <mailman.1021627862.8843.comp.lang.ada@ada.eu.org> (raw)

> whats wring with this?
> 
> function To_Add is new
> System.Address_To_Access_Conversions.To_Address(Procedure_Ptr_Type);
> 
> "Procedure_Ptr_Type" is my Object.
> 


System.Address_To_Access_Conversions is a generic package and you habe to 
instantiate to create a package. After instantiation, the instance package holds 
functions that you can call like any other function of a "normal" package.

package My_Conversion is new System.Address_To_Access_Conversions (My_Type);

X := My_Conversion.To_Address (Procedure_Ptr_Type);



             reply	other threads:[~2002-05-17  9:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17  9:26 Grein, Christoph [this message]
     [not found] <ac2hbs$ljq$1@newstoo.ericsson.se>
2002-05-17  9:35 ` newbie to generic Preben Randhol
2002-05-17 19:40 ` Jeffrey Carter
replies disabled

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