:: Re: [DNG] What is the meaning of th…
Kezdőlap
Delete this message
Reply to this message
Szerző: Rainer Weikusat
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] What is the meaning of this gcc warning?
Didier Kryn <kryn@???> writes:
>     This is the gcc safety guard against one of the most common and
> terribly dangerous errors in C:

>
>     if ( a= b ) instead of if ( a== b )


This is not a particularly common error and not a dangerous one, either,
as gcc will complain about this (to this date, whenever I use the return
value of an assignment in a loop-control expression in Perl because I
mean it, I experience a passing notion of thankfulness for not having to
put the *&£$%*@?! extra pair of parens around it ...)