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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,442a61fa28886220 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-19 08:51:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny03.gnilink.net.POSTED!53ab2750!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <4zuab.5439$U6.3722@nwrdny03.gnilink.net> Subject: Re: Ada for a programming newb. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: <%BFab.61$7W4.35@nwrdny03.gnilink.net> Date: Fri, 19 Sep 2003 15:51:23 GMT NNTP-Posting-Host: 141.154.221.148 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny03.gnilink.net 1063986683 141.154.221.148 (Fri, 19 Sep 2003 11:51:23 EDT) NNTP-Posting-Date: Fri, 19 Sep 2003 11:51:23 EDT Xref: archiver1.google.com comp.lang.ada:42688 Date: 2003-09-19T15:51:23+00:00 List-Id: "Hyman Rosen" wrote in message news:4zuab.5439$U6.3722@nwrdny03.gnilink.net... > When I go to the barber, the result is not a new copy of me with > shorter hair. It's the same old me witha side-effect applied. Actually, the algorithm used by your barber is as follows (in C++) CPerson *NewRosen = new CPerson( *HymanRosen ); NewRosen->CutHair( /* To */ desiredLength ); delete HymanRosen; HymanRosen = NewRosen; The reason you never noticed this before is due to the quality of the copy method ;)