`interesting' program
Frank Wales
frank at zen.co.uk
Tue Jul 11 04:52:08 AEST 1989
In article <2833 at solo8.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
[program deleted]
>I say: zork() is a constant of type struct foo, so you cannot take its
>address and it isn't an lvalue.
>SE says: zork() is the name of a struct foo, so you CAN take its address.
IMHO, zork() is a constant too, and hence not an lvalue. Both the
HP-PA cc (3.01) and its xdb agree, and although I would be the last
person to advocate using a compiler to confirm the language definition,
I trust this one more than most. Maybe SE is used to C on some lazy
or old-fashioned machine (e.g., a Sun386i running 4.0.1 SunOS, which
allows both this().that and (&these())->those, producing equivalent code).
--
Frank Wales, Systems Manager, [frank at zen.co.uk<->mcvax!zen.co.uk!frank]
Zengrange Ltd., Greenfield Rd., Leeds, ENGLAND, LS9 8DB. (+44) 532 489048 x217
More information about the Comp.lang.c
mailing list