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: f4fd2,23202754c9ce78dd X-Google-Attributes: gidf4fd2,public X-Google-Thread: fac41,15edb893ef79e231 X-Google-Attributes: gidfac41,public X-Google-Thread: 114809,15edb893ef79e231 X-Google-Attributes: gid114809,public X-Google-Thread: 103376,15edb893ef79e231 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-28 11:25:17 PST Newsgroups: comp.lang.lisp,comp.lang.ada,comp.lang.eiffel,comp.lang.smalltalk Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.cwix.com!torn!utnut!news.ecf!doylep From: doylep@eecg.toronto.edu (Patrick Doyle) Subject: Re: Copying semantics molehill (was Re: True faiths) Sender: news@ecf.utoronto.ca (news) Organization: Computer Group, Elec. Eng., University of Toronto Message-ID: References: <5ee5b646.0201271908.38674a0d@posting.google.com> X-Nntp-Posting-Host: wildcat.eecg Date: Mon, 28 Jan 2002 18:47:38 GMT Xref: archiver1.google.com comp.lang.lisp:25440 comp.lang.ada:19335 comp.lang.eiffel:5534 comp.lang.smalltalk:18892 Date: 2002-01-28T18:47:38+00:00 List-Id: In article <5ee5b646.0201271908.38674a0d@posting.google.com>, Robert Dewar wrote: >doylep@eecg.toronto.edu (Patrick Doyle) wrote in message news:... >> I must be crazy. I have never written a system where the semantics >> of the "copy" operation mattered. Mainly, this is for two reasons: >> >> 1. A lot of my data is immutable, so the copying semantics are moot. >> >> 2. Instead of copying an existing object, my usual idiom is to create a >> new one from scratch. > >Not crazy, but unusual. You are saying that you do not >do assignments of the form > > a := b; > >where a and b are both objects and that you do not >use IN OUT parameters. No, actually I'm saying what I said. ;-) >It is certainly possible to write code with these constraints, but >definitely unusual. It is most certainly not unusual. For instance, Java has neither object-wise assignment nor in-out parameters. Do you mean it's unusual in some particular language? -- -- Patrick Doyle doylep@eecg.toronto.edu