Re: String filtering
- From: Martin Dowie <martin.dowie@xxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 21:53:11 +0000 (UTC)
Simon Wright wrote:
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.
....and use "pragma Normalize_Scalars;". :-)
Cheers
-- Martin .
- 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
- Re: String filtering
- From: Simon Wright
- String filtering
- Prev by Date: Re: GNAT GPL - Anonymous Access Type
- Next by Date: Re: Constructing an object
- Previous by thread: Re: String filtering
- Next by thread: Re: String filtering
- Index(es):