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=0.2 required=5.0 tests=BAYES_00,HEADER_SPAM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-ArrivalTime: 2003-06-14 02:59:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uwm.edu!rpi!not-for-mail From: brangdon@cix.co.uk (Dave Harris) Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 14 Jun 2003 06:01:14 -0400 Organization: unknown Sender: cppmods@netlab.cs.rpi.edu Message-ID: References: Reply-To: brangdon@cix.co.uk NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Fri, 13 Jun 2003 19:13 +0100 (BST) X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPuryZ0HMCo9UcraBAQGv7wIAnZQjALF6PjiO1LuIv5yirrBfYvFeChxV LiYMOdNBeoq3N2oSJfIg42/WjSWtmr4Q8GHHyJVZHIipgPqq7oqpoA== =xpD4 Xref: archiver1.google.com comp.lang.ada:39164 comp.lang.c++.moderated:68339 Date: 2003-06-14T06:01:14-04:00 List-Id: jimmaureenrogers@att.net (James Rogers) wrote (abridged): > If your suggestion was adopted, how would it affect existing > programs? Some currently non-portable ones would become well-behaved. > why would you ever *want* uninitialized variables? Mainly for speed. We would want to be able to say, eg, std::vector vec( 1000000, unitialised ); to avoid writing a million zeros. Which I suspect makes it a non-trivial language change. What is the type of "initialised"? -- Dave Harris, Nottingham, UK [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ] [ about comp.lang.c++.moderated. First time posters: do this! ]