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!newshub.sdsu.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!newsfeed.stueberl.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: String filtering Date: Wed, 28 Sep 2005 21:55:57 +0100 Organization: Pushface 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: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1127940956 8708 62.49.19.209 (28 Sep 2005 20:55:56 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 28 Sep 2005 20:55:56 +0000 (UTC) Cancel-Lock: sha1:do9NWZTDrcXByPrlyN7jj9mVEkA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:5253 Date: 2005-09-28T21:55:57+01:00 List-Id: 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.