Liste des Groupes | Revenir à cl c |
Am 22.06.2024 um 20:50 schrieb Richard Damon:Both the left part and the right part need to be evaluated before the operator between them can be evaluated - but the two parts can be evaluated in either order (or even interleaved in their evaluation). Associativity is irrelevant.
Prior to that, it was allowed to compute the order of the terms being output in any order, as the call to operator <<(ostream& strm, T& value) was allowd to compute value before resolving stream (as the value from the previous operator <<, which caught enough people off guard.With a left-associative operator the result of the left part has to be
calculated before it can be used with the right part.
Les messages affichés proviennent d'usenet.