comp.lang.ada
 help / color / mirror / Atom feed
From: "Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net>
Subject: Re: Ada for a programming newb.
Date: Fri, 19 Sep 2003 15:51:23 GMT
Date: 2003-09-19T15:51:23+00:00	[thread overview]
Message-ID: <%BFab.61$7W4.35@nwrdny03.gnilink.net> (raw)
In-Reply-To: 4zuab.5439$U6.3722@nwrdny03.gnilink.net

"Hyman Rosen" <hyrosen@mail.com> 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 ;)





  parent reply	other threads:[~2003-09-19 15:51 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-14 20:36 Ada for a programming newb Kyle Root
2003-09-14 21:15 ` Larry Kilgallen
2003-09-14 21:29 ` Ludovic Brenta
2003-09-15 14:46 ` Jarimatti Valkonen
2003-09-18 17:31 ` Isaac Gouy
2003-09-18 19:33   ` Luke A. Guest
2003-09-18 20:19     ` Warren W. Gay VE3WWG
2003-09-18 20:30     ` chris
2003-09-19  1:38     ` Mark Lorenzen
2003-09-19  3:17       ` Hyman Rosen
2003-09-19 14:25         ` chris
2003-09-19 15:09           ` Hyman Rosen
2003-09-19 15:12             ` Vinzent Hoefler
2003-09-19 15:13               ` Vinzent Hoefler
2003-09-19 15:42           ` Preben Randhol
2003-09-19 18:00             ` Stephane Richard
2003-09-21  1:16               ` Hyman Rosen
2003-09-19 15:51         ` Frank J. Lhota [this message]
2003-09-22 12:00           ` Dmitry A. Kazakov
2003-09-22 12:04             ` chris
2003-09-22 12:33               ` Dmitry A. Kazakov
2003-09-22 12:28                 ` Stephane Richard
2003-09-22 19:37             ` Jeffrey Carter
2003-09-23  9:30               ` Jean-Pierre Rosen
2003-09-23 17:49                 ` Jeffrey Carter
2003-09-24  9:53                   ` Preben Randhol
2003-09-19  1:44     ` Jeffrey Carter
2003-09-19 13:30       ` Isaac Gouy
2003-09-19  3:09     ` Isaac Gouy
2003-09-19 21:40       ` Luke A. Guest
2003-09-21 15:09         ` Isaac Gouy
2003-09-19 16:34   ` Chad R. Meiners
2003-09-19 23:57     ` Isaac Gouy
2003-09-20  7:20 ` Anders Wirzenius
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox