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,f45075a84ed4f2fc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-02 18:13:43 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!chnws02.mediaone.net!chnws06.ne.mediaone.net!24.128.8.202!typhoon.ne.mediaone.net.POSTED!not-for-mail Message-ID: <3B69FAC0.939BE062@mediaone.net> From: Ed Falis X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: A question about extending programs References: <3B69CEF7.9BAD41C8@san.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 03 Aug 2001 01:13:38 GMT NNTP-Posting-Host: 65.96.132.248 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 996801218 65.96.132.248 (Thu, 02 Aug 2001 21:13:38 EDT) NNTP-Posting-Date: Thu, 02 Aug 2001 21:13:38 EDT Organization: Road Runner Xref: archiver1.google.com comp.lang.ada:11158 Date: 2001-08-03T01:13:38+00:00 List-Id: Darren New wrote: > With me so far? OK, good. Say I have three such handlers in my program > now. Is it possible to add a forth without changing any source that's > already there? The real question that I think I need to have answered > is, how do I force the fourth handler to get linked in and elaborated > without a specific call in the main body area that references the > handler? In other words, there's nothing that "with"s the package. Do I > actually have to have a list of "with" statements, one for each package, > somewhere? Do I need to actually call something, or is "with" > sufficient? I suppose I could "with" a package from the main routine > that "withs" all the other packages, thereby basically building a list > of things I handle. Is that the best way? > Yeah, a fairly straightforward way to do it is to declare a child package defining the new derivation, and add that child to the main's context clauses. - Ed