:: Re: [DNG] What is the meaning of th…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Rainer Weikusat
Date:  
À: dng
Sujet: 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 ...)