Path: utzoo!attcan!uunet!odi!dlw From: dlw@odi.com (Dan Weinreb) Newsgroups: comp.lang.c++ Subject: Re: Need `set before used' warning Message-ID: <1990Oct4.063119.10626@odi.com> Date: 4 Oct 90 06:31:19 GMT References: <2@mtnmath.UUCP> <1990Sep27.001259.25809@relay.wpd.sgi.com> <195@c.procase.UUCP> <11745@cadillac.CAD.MCC.COM> Reply-To: dlw@odi.com Organization: Object Design, Inc. Lines: 10 In-Reply-To: vaughan@mcc.com's message of 3 Oct 90 19:12:04 GMT In article <11745@cadillac.CAD.MCC.COM> vaughan@mcc.com (Paul Vaughan) writes: I've been tending to use the initialization form more and more, but I don't really have a good reason for why I should do that. For some types in your program you might have an operator= that has non-trivial cost; by using the initialization form instead of assigning data member variables from argument variables, you can avoid that cost, for such types. I have seen this arise in practice in a few places. I realize that this is a special case.