More Re: Function Argument Evaluation argument

Norman Diamond diamond at jit345.swstokyo.dec.com
Tue Apr 9 10:31:02 AEST 1991


In article <1991Apr8.191009.24897 at cs.ucla.edu> jon at maui.cs.ucla.edu (Jonathan Gingerich) writes:

>So what about:
>	 (*fp)(fp = &g)

Intuitively, either the function previously pointed to, or g, could be called,
though the argument would have to be a pointer to g.  (But this is not what
the standard says.)

Pedantically, the net.random_marauders could be called, because the expression
fetches the old value of fp for a purpose other than determining the new value
to be stored.
--
Norman Diamond       diamond at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.



More information about the Comp.std.c mailing list