you are viewing a single comment's thread
view the rest of the comments
[–] 0 points 3 years ago (1 child)

In the languages I know, i-=-1 or x=3 are not expressions, but rather statements, so they do not evaluate to a value.

So, this would be a compiler error:

a = (x=3)
  • source
  • parent
  • hideshow 1 child comment