From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Need advice: Enumerate or not
Date: Thu, 16 May 2002 19:05:12 +0000 (UTC)
Date: 2002-05-16T19:05:12+00:00 [thread overview]
Message-ID: <slrnae80n8.126.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: ubsbgdz36.fsf@gsfc.nasa.gov
On 16 May 2002 09:03:25 -0400, Stephen Leake wrote:
> No, the child package where the actual operation is defined does _not_
> need to be visible for dispatching to happen. That is crucial to the
> dispatching design; the top level Update procedure can be written with
> _no_ knowledge of what procedures are actually dispatched to.
But as I said these objects are in different packages which are not
child packages of a package. Doe they need to be?
> This is done by making the root operation abstract; then the compiler
> ensures that each derived type supplies an update function.
Yes I have done this in my Common_Dialog package as there I have a
"root" package which has an abstract type that the child packages
derive. In my other case I don't have that.
--
Preben
next prev parent reply other threads:[~2002-05-16 19:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-15 9:42 Need advice: Enumerate or not Preben Randhol
2002-05-15 12:26 ` Jim Rogers
2002-05-15 14:24 ` Preben Randhol
2002-05-16 13:03 ` Stephen Leake
2002-05-16 19:05 ` Preben Randhol [this message]
2002-05-15 18:00 ` Jeffrey Carter
2002-05-16 0:31 ` Jim Rogers
2002-05-16 2:37 ` Robert Dewar
2002-05-16 10:22 ` Preben Randhol
2002-05-16 17:36 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox