>>>>> "Jim" == Cathey, Jim <[EMAIL PROTECTED]> writes:

Hi,

 Jim> If anyone wants my opinion, I greatly dislike using if(FOO) with
 Jim> the expectation that the compiler will eliminate the code.  I
 Jim> expect if() to be associated only with run-time decisions,
 Jim> just as #if is with compile-time decisions.  In fact, if cc
 Jim> _were_ able to eliminate great gobs of code I'd even expect a
 Jim> warning to that effect, as it is likely that that is NOT what
 Jim> I as author intended.

The big advantage of if (FOO) instead of #if FOO is that you always
get to compile test all configurations (even if the code it later
eliminated by the compiled).

That's a pretty big deal as the number of configuration settings go
up.

But sure, it isn't a black/white thing.

-- 
Bye, Peter Korsgaard
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to