News for hackers. Stuff that matters.
Re:On VBScript by userbinator on Wednesday December 19, 2018 @09:47PM (#18722104)
including C and C++, it's specified that the RHS is evaluated first.

I did not check C++ but for C, according to ISO/IEC 9899:1999 section 6.5.16 paragraph 4 on the semantics of the assignment operator: "The order of evaluation of the operands is unspecified."

Re:On VBScript by tlb on Wednesday December 19, 2018 @10:03PM (#18722173)
Gosh, you're right. Clang warns, at least:

  t-order.c:10:8: warning: unsequenced modification and access to 'x' [-Wunsequenced]
    foo[x++] = x;
Re:On VBScript by ngcc_hk on Wednesday December 19, 2018 @11:23PM (#18722491)
Language that is complicated in syntax also ended up with discussion like that. A couple of day ago you have the VisiCalc guy talked about he need to do a stack machine against the expectation here.

Think of lisp But then lisp require parentheses

Think of j but the strange right hand side then fork/train.

It is hard for this simple thing. Even = and =: get Python dictator for life resigned.

Just hard