comp.lang.ada
 help / color / mirror / Atom feed
* Re: newbie to generic
@ 2002-05-17  9:26 Grein, Christoph
  0 siblings, 0 replies; 3+ messages in thread
From: Grein, Christoph @ 2002-05-17  9:26 UTC (permalink / 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);



^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <ac2hbs$ljq$1@newstoo.ericsson.se>]

end of thread, other threads:[~2002-05-17 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-17  9:26 newbie to generic Grein, Christoph
     [not found] <ac2hbs$ljq$1@newstoo.ericsson.se>
2002-05-17  9:35 ` Preben Randhol
2002-05-17 19:40 ` Jeffrey Carter

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