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

Re: Debian coding style?

>>19. Comparisons for equality against a constant value should list the
>>constant value first. Its easy to miss one of the equals signs - this way
>>the compiler will catch it if you do.
>>eg. if (-1 == m_nResult) rather than if (m_nResult == -1)
>This isn't the only instance of Corel forcing the compiler to reject
>invalid code.  You should see how they verify the sizes of data types!

How do they do it?

Paul Lowe

Reply to: