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: Dave Hylands
Subject: RE: [avr-gcc-list] Feature request - compiler warning for "if" stmts that do nothing
Date: Mon, 20 Dec 2004 07:07:21 -0800

> 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.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/ 



reply via email to

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