Re: String filtering



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
.