From: adam@irvine.com (Adam Beneschan)
Subject: Re: Calling through function pointer--syntax question
Date: 6 Jun 2001 15:06:09 -0700
Date: 2001-06-06T22:06:10+00:00 [thread overview]
Message-ID: <b4682ab7.0106061406.56fe7b0c@posting.google.com> (raw)
In-Reply-To: 3B1E539E.CF306AC6@averstar.com
Tucker Taft <stt@averstar.com> wrote in message news:<3B1E539E.CF306AC6@averstar.com>...
> adam@irvine.com wrote:
> >
> > Is the last procedure call in the program ambiguous?
>
> No. Even if func_ptr had a default expression for
> its "param" it would still be unambiguous, because
> you need an explicit ".all" to call through a function
> pointer when there are no explicit parameters passed.
> An implicit ".all" is provided prior to "(" and ".<component>"
> but not in other places.
Sorry, I'm not following . . . the default parameter in my example is on the
function "func", not on the function *pointer*. In the call
P (func (5));
since an implicit .all is provided prior to "(", why couldn't this be
interpreted as
P (func.all (5));
[here it's clear that the default parameter is passed to "func"]?
-- Adam
next prev parent reply other threads:[~2001-06-06 22:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-05 17:43 Calling through function pointer--syntax question adam
2001-06-05 19:39 ` tmoran
2001-06-06 16:17 ` Adam Beneschan
2001-06-06 16:00 ` Tucker Taft
2001-06-06 22:06 ` Adam Beneschan [this message]
2001-06-07 1:22 ` Jeffrey Carter
2001-06-08 21:34 ` Adam Beneschan
2001-06-09 6:29 ` Simon Wright
2001-06-11 13:08 ` Philip Anderson
2001-06-11 17:34 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox