---------------------------------------- > Date: Mon, 7 Jan 2008 09:29:48 -0800 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: Introducing Cobra > > > OK. Typedefs suck for improving the reliability of your code, even if > they might help the readability. Unfortunately, I don't think they help > the readability if you can pass a H into a function expecting a V, > because I think you might gloss over this bug because you'd unconciously > expect a type error there. I.e., it really *isn't* improving the > readability, and comments would be better because at least you know the > compiler won't check.
A good compiler does spit out a warning when you add or assign 1 typedef to another (although not usually when you add an int to one). Set all warnings to errors (or at least that one) and it'll spit out an error. Gabe _________________________________________________________________ Get the power of Windows + Web with the new Windows Live. http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008 -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
