From: Will D. <wi...@wj...> - 2006-11-06 04:24:18
|
Larry, I can honestly say that in my 20 years as a C programmer I've been bitten by saying "=" where I meant "==" or "==" where I meant "=" at least a few times every year. I believe I always caught the error in unit testing...but it usually left me scratching my head for a few minutes, because the actual error was so hard to see. I'd certainly be willing to live with "=" in [expr]; but on the other hand, using ":=" for assignment in [expr] is cheap-enough insurance. I don't really care either way. Will On Nov 5, 2006, at 8:00 PM, Larry McVoy wrote: >> I think an ounce of prevention is worth it here since finding this, >> if it's a bug, is very difficult, even for a pro. > > Really? So who amongst us willing to pony up with 10 real world > examples > where this was an issue? > > I'm not saying it isn't but we're a 95% pure C shop and we should > be seeing > this all the time but we don't. Are we that much better than average? > -- > --- > Larry McVoy lm at bitmover.com http:// > www.bitkeeper.com > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core ------------------------------------------------------------------ will -at- wjduquette.com | Catch our weblog, http://foothills.wjduquette.com/blog | The View from the Foothills |