From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Calling through function pointer--syntax question
Date: Thu, 07 Jun 2001 01:22:46 GMT
Date: 2001-06-07T01:22:46+00:00 [thread overview]
Message-ID: <3B1ED74B.BFC95722@acm.org> (raw)
In-Reply-To: b4682ab7.0106061406.56fe7b0c@posting.google.com
Adam Beneschan wrote:
>
> 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"]?
The implicit ".all" also means the "(" starts the parameter list of the
function being pointed to. You never get an implicit ".all" if there are
no explicit parameters.
--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python & the Holy Grail
next prev parent reply other threads:[~2001-06-07 1:22 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
2001-06-07 1:22 ` Jeffrey Carter [this message]
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