From: Ted Dennison <dennison@telepath.com>
Subject: Re: Dynamic redispatching
Date: 2000/01/20
Date: 2000-01-20T00:00:00+00:00 [thread overview]
Message-ID: <867ujg$ni3$1@nnrp1.deja.com> (raw)
In-Reply-To: 38875677.950A6FCA@averstar.com
In article <38875677.950A6FCA@averstar.com>,
Tucker Taft <stt@averstar.com> wrote:
> You are trying to make this dispatching-on-result happen in a "return"
> statement, but at that point, there is no context from which to get
> the tag to control the dispatching.
I was figuring it would take the tag of the ultimate object transitively
through return calls. I guess not. :-(
> However, returning composite objects as results is generally less
> efficient than using OUT parameters (because OUT parameters can use
> pass-by-reference). So unless there is some compelling reason for
> these to be functions (such as they have discriminants whose value is
> not known to the caller, or they will often be combined with other
> function calls in the middle of a more complex expression), you might
> want to make them all procedures.
There isn't, so I am doing just that. Thanks.
--
T.E.D.
http://www.telepath.com/~dennison/Ted/TED.html
Sent via Deja.com http://www.deja.com/
Before you buy.
prev parent reply other threads:[~2000-01-20 0:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-18 0:00 Dynamic redispatching Ted Dennison
2000-01-18 0:00 ` Ray Blaak
2000-01-19 0:00 ` Ted Dennison
2000-01-20 0:00 ` Tucker Taft
2000-01-20 0:00 ` Ted Dennison [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