[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: Re: bug report: LUA compiler glitch
From: Mike Pall <mikelu-1108 () mike ! de>
Date: 2011-08-10 8:20:58
Message-ID: 20110810082058.GA2122 () mike ! de
[Download RAW message or body]
David Kastrup wrote:
> Mike Pall <mikelu-1108@mike.de> 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.
--Mike
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic