Print

Print


Greg Lindahl wrote:
[log in to unmask]">
The object is not to use the workaround all the time. The object is to
use the workaround to find that there is a bug.
  
I find that compilation systems (or standalone lints) which identify "use before set"... they  provide me with a quicker solution than setting everything to zero vs. whatever normally happens.
[log in to unmask]">
Better all variables should be set to some invalid data (like NaN), unless
explicitly initialized.
    

There is no equivalent to NaN for integers. Yes, it's handy to have
NaN initialization for floating point. Personally, I like to be able
to have initialization to a constant, and vary the constant to see if
the program behavior changes.
  
Very wise of you.


--
sigtext Keith H. Bierman    [log in to unmask]|
Sun Microsystems PAE                     | [log in to unmask]
12 Network Circle UMPK 12-325            | 650-352-4432 voice+fax
Menlo Park, California  94025            | sun internal 68207
<speaking for myself, not Sun*> Copyright 2004
------------------------------------------------------------
NOTICE: This email message is for the sole use of the
intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited.
If you are not the intended recipient, please contact
the sender by reply email and destroy all copies of the
original message.