Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!voder!procase!roger From: roger@procase.UUCP (Roger H. Scott) Newsgroups: comp.lang.c++ Subject: Re: Need `set before used' warning Keywords: c++, warning Message-ID: <195@c.procase.UUCP> Date: 1 Oct 90 23:40:59 GMT References: <2@mtnmath.UUCP> <1990Sep27.001259.25809@relay.wpd.sgi.com> Reply-To: roger@procase.UUCP (Roger H. Scott) Organization: proCASE Corporation, Santa Clara, CA Lines: 6 I would like to reinforce the suggestion that *all* class members be *initialized* in constructors using *initialization* (not assignment) syntax. While this is not always possible (due to the need to do non-trivial computation in order to generate the actual member values), it often possible. I find that many of my constructors have empty "{}" bodies, since all they do is initialize members and subclasses.