Re: [PATCH] Improve portability across compilers

From: Kinkie <gkinkie_at_gmail.com>
Date: Fri, 23 Aug 2013 15:49:36 +0200

besides, it's equivalent to
if (compile_stack.avail == true)

assuming compile_stack.avail is a bool ;)

On Fri, Aug 23, 2013 at 3:39 PM, Alex Rousskov
<rousskov_at_measurement-factory.com> wrote:
> On 08/23/2013 01:21 AM, Amos Jeffries wrote:
>>
>> Better: if (!compile_stack.avail == false)
>>
>> for avoiding the integer magic conversion please.
>
> Please no. The above expression is too difficult to read correctly for
> humans. I would rather see bogus clang errors than read expressions like
> that.
>
> Alex.
>

-- 
    /kinkie
Received on Fri Aug 23 2013 - 13:49:43 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 23 2013 - 12:01:12 MDT