From: xorque <xorquewasp@googlemail.com>
Subject: Re: Generic 'access-to-subprogram' formal
Date: Sat, 9 Jan 2010 10:08:20 -0800 (PST)
Date: 2010-01-09T10:08:20-08:00 [thread overview]
Message-ID: <c79ed4f4-6f42-4309-a9e8-4476001f326b@k17g2000yqh.googlegroups.com> (raw)
In-Reply-To: 86c18193-459f-410f-b7a7-aba62ca03095@k19g2000yqc.googlegroups.com
On Jan 9, 5:03 pm, AdaMagica <christoph.gr...@eurocopter.com> wrote:
>
> generic
> type Some_Type is private;
> type Acc_Proc is access procedure (A: Some_Type);
Thanks.
I suppose it's not possible to be less specific?
dlopen()-like functions might return a pointer to any type
of subprogram, so I'd want to do something like:
generic
type Subprogram_Access_Type is access private;
function Load_Subprogram (Name : in String) return
Subprogram_Access_Type;
I don't see anything in the RM that might accommodate this.
The Load_Subprogram doesn't need to know anything about
the type other than the fact that it's an access to something.
I have a feeling I'm going to be unsafely converting a
System.Address...
next prev parent reply other threads:[~2010-01-09 18:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-09 12:20 Generic 'access-to-subprogram' formal xorque
2010-01-09 17:03 ` AdaMagica
2010-01-09 18:08 ` xorque [this message]
2010-01-09 18:52 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox