avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts tha


From: E. Weddington
Subject: Re: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing
Date: Mon, 20 Dec 2004 11:07:24 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Dave Hylands wrote:

The compiler will always barf if the constant is on the left because
you can not assign a value to a constant.

I always found that little tidbit (putting the constant on the left) to
be amusing.

I figure if I can remember to put the constant on the left (which isn't
natural for me), then I can remember to use '==' when I'm supposed to.

Perhaps it's because I already knew C the first time I heard about that
little practice, and you know what they say about old habits dying hard.


I agree wholeheartedly!! :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]