From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f802583e5c84fa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: String filtering Date: Wed, 28 Sep 2005 21:53:11 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1j92wa9843ylq.16j89wuqatbaj$.dlg@40tude.net> <433924a2$1_1@glkas0286.greenlnk.net> <43392732$1_1@glkas0286.greenlnk.net> <1jd30obyohnp6$.41tz3funikly.dlg@40tude.net> <43394a3e$1_1@glkas0286.greenlnk.net> <1gdgwjo7aini9.1qzlnlpq5gsa$.dlg@40tude.net> NNTP-Posting-Host: host86-131-205-90.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1127944391 9644 86.131.205.90 (28 Sep 2005 21:53:11 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Wed, 28 Sep 2005 21:53:11 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Xref: g2news1.google.com comp.lang.ada:5259 Date: 2005-09-28T21:53:11+00:00 List-Id: Simon Wright wrote: > David Trudgett 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