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: 103376,b30bd69fa8f63cb2 X-Google-Attributes: gid103376,public X-Google-Thread: fc772,b30bd69fa8f63cb2 X-Google-Attributes: gidfc772,public X-Google-ArrivalTime: 2003-06-18 14:13:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!uwm.edu!rpi!not-for-mail From: "Balog Pal" Newsgroups: comp.lang.ada,comp.lang.c++.moderated Subject: Re: C bug of the day Date: 18 Jun 2003 17:15:59 -0400 Organization: LiB Sender: cppmods@netlab.cs.rpi.edu Message-ID: <3ef04f82@andromeda.datanet.hu> References: <1054751321.434656@master.nyc.kbcfp.com> NNTP-Posting-Host: netlab.cs.rpi.edu X-Original-Date: Wed, 18 Jun 2003 13:03:57 +0100 X-Submission-Address: c++-submit@netlab.cs.rpi.edu X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUAPvDWi0HMCo9UcraBAQFf/wH/YRhXeYoyA24tf4snVk/VrfyDHz1BBPY9 iWtb7TIG6OnO0uWMzvRNqX/BDmJxW0soJ0wC2/SnnGypNR2TQk7zmw== =DeuR Xref: archiver1.google.com comp.lang.ada:39413 comp.lang.c++.moderated:68651 Date: 2003-06-18T17:15:59-04:00 List-Id: "Ron Natalie" wrote in message news:Fn2dnUzrDqr3YXSjXTWQlg@giganews.com... > auto int i; // recycle auto to mean uninitialized. > stream >> i; > > In the above case existing code that used the unqualified name would work in old and new compilers > (with a slight performance hit in the new complier), those in the second case would work the same way > in the old and new compiler (the same way it used to). That looks great, but doesn't cover important cases. Those important to me at least. I'm tired of not having default-initing ctors. Every now and again I find misbehavior of some object due to a new member introduced, then not inited to anything in the constructor. I'm also tired of writing redundant ctors et al -- instead of simple directing the compiler to do it automagically. Paul [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ]