Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: TIL: C++17 sequences assignment the wrong way. Date: Fri, 09 Aug 2019 10:36:50 -0700 Organization: A noiseless patient Spider Lines: 32 Message-ID: <867e7m9r65.fsf@mailhub.linuxsc.com> References: <20190718203039.263@kylheku.com> <86r2678uvc.fsf@mailhub.linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="ddd52e898386accec42eaf10bcb5b758"; logging-data="20408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+x7VuVsB2nh66L46lRx5iQzJIfs6mE1fI=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:V2Cz5NxSi0VasFmJgB5BU1siyHQ= sha1:RT1rYS0NFfbl3FDBar+0sAzXofM= Xref: csiph.com comp.lang.c++:67499 Keith Thompson writes: > Tim Rentsch writes: > >> ram@zedat.fu-berlin.de (Stefan Ram) writes: >> >>> Newsgroups: comp.lang.lisp,comp.lang.c++ >>> >>> Stefan Monnier writes: >>> >>>> Do you happen to have a reference to this part of the spec? >>> >>> In the most recent draft, n4800, it's 7.6.18p1: >>> >>> The right operand is sequenced before the left operand. >>> >>> . The assignment stores the value of the right operand >>> into the object indicated by the left operand, so the >>> operations involved are: >>> >>> First, obtain the value of the right operand, >>> then, store this value into the left operand. >>> >>> Therefore some kind of right-to-left sequencing is part >>> of the semantics the assignment already always had, in >>> any language. >> >> This summary sentence is utter nonsense. > > What does the phrase "This summary sentence" refer to? The sentence that starts "Therefore some kind of ...".