comp.lang.ada
 help / color / mirror / Atom feed
From: Ed Falis <efalis@mediaone.net>
Subject: Re: A question about extending programs
Date: Fri, 03 Aug 2001 01:13:38 GMT
Date: 2001-08-03T01:13:38+00:00	[thread overview]
Message-ID: <3B69FAC0.939BE062@mediaone.net> (raw)
In-Reply-To: 3B69CEF7.9BAD41C8@san.rr.com

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



      reply	other threads:[~2001-08-03  1:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-02 22:06 A question about extending programs Darren New
2001-08-03  1:13 ` Ed Falis [this message]
replies disabled

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