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-Thread: 103376,1a52c822fc0dbb23 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!newshub.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Rational for not making cursor tagged in Containers Date: Fri, 20 Apr 2007 15:54:06 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1176998738.656903.141250@q75g2000hsh.googlegroups.com> <1177010938.200523.325290@p77g2000hsh.googlegroups.com> <1a8y2vakorfhx.225uqh4hifpd$.dlg@40tude.net> <1xmzi7newnilp.23m3zze8h9yi.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1177098847 18595 192.74.137.71 (20 Apr 2007 19:54:07 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 20 Apr 2007 19:54:07 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:is7fDuDvrbJjMZUlTAFPQS21YEs= Xref: g2news1.google.com comp.lang.ada:15169 Date: 2007-04-20T15:54:06-04:00 List-Id: Ray Blaak writes: > "Dmitry A. Kazakov" writes: >> On Fri, 20 Apr 2007 17:05:28 GMT, Ray Blaak wrote: >> >> >> X := Y; -- Who owns assignment? 1 or X? Was this supposed to say "Y or X"? Or is 1 presumed to be the value of Y? I think I'm missing Dmitry's point here, unless it was to say that for symmetric operations, it's hard to say which type it "belongs" to. >> > X, of course. >> >> So, it should dispatch on X, right? Welcome back to C++! > > No sweat. That is not the most serious of C++'s pitfalls. > > In practice though, I use C#/Java for which the "language" owns assignment, > and no one else. Of course simple assignment does not copy fields, so explicit > clone/copy methods need to be used instead, which more clearly indicates > ownership/dispatching rules, etc. Yeah. In this area, Java is sort of like the situation in Ada if all composite types were required to be limited. You can use ":=" on access types and integer types... - Bob