[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: bug report: LUA compiler glitch
- From: Mike Pall <mikelu-1108@...>
- Date: Wed, 10 Aug 2011 10:20:58 +0200
David Kastrup wrote:
> Mike Pall <firstname.lastname@example.org> writes:
> > Actually both. The parallel assignment statement only guarantees
> > that all expressions on the right-hand side are evaluated *before*
> > any of the assignments are made.
> Well, what about left-hand evaluations?
> i, a[i] = 1, 2
> a[i] = (function () i = i+1 end)()
See Roberto's statement: "evaluation order is undefined"
I've left out a discussion of LHS evaluations to not complicate
the matter any further.