Re: String filtering
- From: Simon Wright <simon@xxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 21:55:57 +0100
David Trudgett <wpower@xxxxxxxxxxxxxxxxxxxxxxxx> writes:
> Thanks for pointing that out, by the way, because I wasn't sure
> initially. I'm loathe, however, to depend upon default
> initialisation, even when it's specified in a standard.
Where the standard specifies initialization (eg for access types, or
here) you probably won't get a warning for 'used before written
to'. But in other cases, if you don't know what to set the variable to
it is better _not_ to initialize it; that way the compiler has at
least a chance to tell you if you haven't set the value before using
it.
.
- Follow-Ups:
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- References:
- String filtering
- From: David Trudgett
- Re: String filtering
- From: David Trudgett
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- From: Dmitry A. Kazakov
- Re: String filtering
- From: Martin Dowie
- Re: String filtering
- From: Dmitry A. Kazakov
- Re: String filtering
- From: David Trudgett
- Re: String filtering
- From: Dmitry A. Kazakov
- String filtering
- Prev by Date: Re: Various Language Architecture Questions
- Next by Date: Re: String filtering
- Previous by thread: Re: String filtering
- Next by thread: Re: String filtering
- Index(es):
Relevant Pages
|