Skip to content
Prev 165136 / 398503 Next

Is = now the same as <- in assigning values

Wacek Kusnierczyk wrote:
too quick this time:  the 'then' is not appropriate, as it is an
expression, not its value, that is passed to foo.  so this does what i
expect, and what i'd expect with x <- 2 instead, namely:  x is assigned
2 on the first occasion the argument a is used within foo, and
effectively a has the value of x after the assignment.


vQ