From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Subprogram Pointer in a Generic
Date: 17 Apr 2003 16:24:25 -0400
Date: 2003-04-17T16:24:25-04:00 [thread overview]
Message-ID: <wcc1y00hnye.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: iVpna.242573$Zo.49035@sccrnsc03
tmoran@acm.org writes:
> >(1) The absence of such a rule would prevent an implementation from
> > implementing efficiently shared generic packages:
> Would it be possible to do code sharing at all?
> type Young is range 1 .. 20;
> type Old is range 21 .. 120;
> package a is new generic_package(Young);
> package b is new generic_package(Old);
> and inside generic_package you make a call on
> Register(Local_Procedure'access);
> What is registered - the instantiation of Local_Procedure that deals
> with Young or the one that deals with Old? Extra information needs to
> be passed along, but Register expects just a simple pointer.
It is certainly possible, but Randy Brukardt will tell you it's not
easy, and probably not possible to do efficiently.
- Bob
next prev parent reply other threads:[~2003-04-17 20:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-17 1:53 Subprogram Pointer in a Generic Charles H. Sampson
2003-04-17 2:54 ` James S. Rogers
2003-04-17 3:15 ` Samuel Tardieu
2003-04-17 5:27 ` tmoran
2003-04-17 3:12 ` Samuel Tardieu
2003-04-17 4:17 ` tmoran
2003-04-17 20:24 ` Robert A Duff [this message]
2003-04-18 2:59 ` Charles H. Sampson
2003-04-22 16:34 ` Warren W. Gay VE3WWG
2003-04-22 21:17 ` Robert A Duff
2003-04-23 20:46 ` Warren W. Gay VE3WWG
2003-04-17 19:41 ` Matthew Heaney
2003-04-17 20:39 ` Robert A Duff
2003-04-17 23:14 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox