From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,72113392dc4997bd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-16 21:17:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!sccrnsc03.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Subprogram Pointer in a Generic References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc03 1050553038 12.234.13.56 (Thu, 17 Apr 2003 04:17:18 GMT) NNTP-Posting-Date: Thu, 17 Apr 2003 04:17:18 GMT Organization: AT&T Broadband Date: Thu, 17 Apr 2003 04:17:18 GMT Xref: archiver1.google.com comp.lang.ada:36227 Date: 2003-04-17T04:17:18+00:00 List-Id: >(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.