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!news1.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps90.POSTED!023a3d7c!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: Rational for not making cursor tagged in Containers References: <1176998738.656903.141250@q75g2000hsh.googlegroups.com> <1177010938.200523.325290@p77g2000hsh.googlegroups.com> <1a8y2vakorfhx.225uqh4hifpd$.dlg@40tude.net> <1xmzi7newnilp.23m3zze8h9yi.dlg@40tude.net> From: Ray Blaak Message-ID: Organization: The Transcend User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 20 Apr 2007 18:52:22 GMT NNTP-Posting-Host: 208.66.252.228 X-Trace: edtnps90 1177095142 208.66.252.228 (Fri, 20 Apr 2007 12:52:22 MDT) NNTP-Posting-Date: Fri, 20 Apr 2007 12:52:22 MDT Xref: g2news1.google.com comp.lang.ada:15165 Date: 2007-04-20T18:52:22+00:00 List-Id: "Dmitry A. Kazakov" writes: > On Fri, 20 Apr 2007 17:05:28 GMT, Ray Blaak wrote: > > >> X := Y; -- Who owns assignment? 1 or X? > > > > 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. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.