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.3 required=5.0 tests=BAYES_00,HEADER_SPAM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-Thread: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-13 08:52:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!logbridge.uoregon.edu!uwm.edu!rpi!not-for-mail From: =?Windows-1252?Q?Terje_Sletteb=F8?= Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 13 Jun 2003 11:55:08 -0400 Organization: unknown Sender: cppmods@netlab.cs.rpi.edu Message-ID: References: <1054751321.434656@master.nyc.kbcfp.com> NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Fri, 13 Jun 2003 13:57:04 +0200 X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPunz1UHMCo9UcraBAQGnYgIAjtjCecSuSgtkwq3eaJpnfXNA0bELauMS 1oEHuqcSO20YAt5i1VONGPZWTKu8kxxNCoGLSGBEOn3+rAKt5BHdJQ== =AaQw Xref: archiver1.google.com comp.lang.ada:39130 comp.lang.c++.moderated:68291 Date: 2003-06-13T11:55:08-04:00 List-Id: "James Rogers" wrote in message news:Xns9398BD1E07E3Ejimmaureenrogers@204.127.36.1... > "Andrei Alexandrescu" wrote in > news:bc9h7j$gm42t$1@ID-14036.news.dfncis.de: > > > I was mentioning that just to mention a simple language design decision > > that's a no-brainer to implement, yet which imho has a great impact > > because > > of the psychological issue you mentioned. The others are also important, > > but > > not as trivial to implement and support without making performance > > tradeoffs. > > I am sorry. I misunderstood. I thought you were being sarcastic. > If your suggestion was adopted, how would it affect existing > programs? For that matter, why would you ever *want* uninitialized > variables? Reading from streams is an obvious example: int i; stream >> i; Intialising "i" beforehand would just be vasteful. Regards, Terje [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ] [ about comp.lang.c++.moderated. First time posters: do this! ]