News for hackers. Stuff that matters.
Re:C++17 creates a practical use of the backward array index... by ynik on Tuesday April 04, 2023 @05:00AM (#35436939)
To allow for chaining. Consider a statement like:

    a.f(foo(1)).g(foo(2)).arr[foo(3)].h(foo(4));
In C++14, the foo() calls happened in unspecified order. C++17 guarantees that "a(b)" and "a[b]" evaluate "a" first, which effectively means the foo() calls will now happen in order (1 to 4).

There are no comments on this comment yet.