Re: [gnet-dev] Build with Sun compiler



On Tue, Apr 29, 2003 at 08:45:31AM +0100, martyn 2 russell bt com wrote:
> > The conditional operator is ofcourse standard C. But it is not an
> > lvalue and can therefore not be used as the left hand part of an
> > assignment.
> 
> True, d'oh :)
> 
> But you say GCC allows it?

It does indeed. It is listed as an 'extension to the C language
family' in the manual:

  http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Lvalues.html#Lvalues

Cheers,
-Ives
______________________________________________________________________
Ives Aerts                      Sony Visual Products Europe - Brussels
Ives Aerts sonycom com                    http://www.vpe-b.sonycom.com
`Apparantly, 1 in 5 people are Chinese. There are 5 people in my
 family, so it must be one of them.'                    (Tommy Cooper)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]