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.9 required=5.0 tests=BAYES_00 autolearn=ham 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-22 04:51:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Ada for a programming newb. Date: Mon, 22 Sep 2003 14:00:11 +0200 Message-ID: References: <4zuab.5439$U6.3722@nwrdny03.gnilink.net> <%BFab.61$7W4.35@nwrdny03.gnilink.net> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1064231512 3470848 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:42739 Date: 2003-09-22T14:00:11+02:00 List-Id: On Fri, 19 Sep 2003 15:51:23 GMT, "Frank J. Lhota" wrote: >"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 ); Yep, each barber has a storage pool in his cellar with a giant refrigerator where it keeps human bodies to allocate ... > NewRosen->CutHair( /* To */ desiredLength ); > > delete HymanRosen; Mmm, I think it is: HymanRosen->Send (&HannibalLector); Cutting hairs (at least here in Germany) could not repay the costs of fresh flesh, so he definitely sells the rests to Hannibal! (:-)) > HymanRosen = NewRosen; > >The reason you never noticed this before is due to the quality of the copy >method ;) --- Regards, Dmitry Kazakov www.dmitry-kazakov.de