(&f())->member, was: union *func()
David Lai
lai at vedge.UUCP
Tue Nov 1 06:43:03 AEST 1988
In previously mentioned that -> operator required an lvalue, sorry, what I was
thinking about is the & operator.
On a related issue, the C language specifies that a function call is never an
lvalue, yet most compilers I've used allow:
struct xxx f();
dummy = (&f())->member;
Does anyone know if this is contrary to ANSI?
--
"What is a DJ if he can't scratch?" - Uncle Jamms Army
The views expressed are those of the author, and not of Visual Edge, nor Usenet.
David Lai (vedge!lai at larry.mcrcim.mcgill.edu || ...watmath!onfcanim!vedge!lai)
More information about the Comp.std.c
mailing list