From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: zalman@netcom.com (Zalman Stern) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/08 Message-ID: #1/1 X-Deja-AN: 278600470 Sender: zalman@netcom6.netcom.com References: <3431A2DB.4273@EasyInternet.net> <60ui2q$33a$1@cdn-news.telecom.com.au> <60ujk7$i58$1@lyra.csx.cam.ac.uk> <3432F896.7FD2@HousemarqueREM.fi> <3433AAC0.10C4@NOSPAMarm.com> <611r14$4i6$1@clarion.carno.net.au> <6131q6$8o1$1@dartvax.dartmouth.edu> <619p6o$6fi$1@goanna.cs.rmit.edu.au> Followup-To: comp.sys.intel,comp.arch,comp.sys.dec Organization: Netcom On-Line Services Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec Richard A. O'Keefe (ok@goanna.cs.rmit.edu.au) wrote: : Aliasing is very confusing for people to deal with. : Of course, as soon as you have objects as in Smalltalk or Common Lisp or : Java, you have precisely the same kind of problem when the same object : reference can be passed (the _reference_ is passed by copy-in) to a : procedure. See for example item 17 in Scott Meyers' _Effective_C++_ titled "Check for assignment to self in operator=." The item explains that the statement: a = a; in C++ may not be a "nop" for an improperly implemented assignment operator. (I wonder if the C++ draft standard allows the compiler to punt on calling the assignment operator in that case. I doubt it...) -Z-