union *func()
Guido van Rossum
guido at cwi.nl
Fri Oct 28 22:32:53 AEST 1988
In article <14201 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>In article <1585 at solo8.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) asks
>why the restriction exists.
Chris's original posting said that "v = func().a" is legal, unless a is
an array. The reason was that C has no array assignment, not that
there's anything special with array members of structs returned by
functions. A less confusing way to state the ruls is that "func().a" is
legal, but as an rvalue only.
--
Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam
guido at piring.cwi.nl or mcvax!piring!guido or guido%piring.cwi.nl at uunet.uu.net
More information about the Comp.lang.c
mailing list