[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: about lua5.15 code check_conflict() meaning
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 10 Jun 2021 10:03:44 -0300
> Hello everyone
> I am reading a function check_conflic, but I can't think of the
> actual Lua code corresponding to it. Can anyone give me an example? thank
> you all. by the way, i'm reading lua5.1.5
local a, b = {}, 10
a[b], b = 20, 30
print(a[10], a[30])
The correct answer is 20, nil. If you remove check_conflict, this
example will print nil, 20.
-- Roberto