Closed translatenix closed 1 week ago
The following program prints length = 2:
length = 2
local l1 = new Listing { "foo" } local l2 = (l1) { [0 + 0] = "bar" } length = l2.length
If [0 + 0] is replaced with [0], the program prints the expected length = 1.
[0 + 0]
[0]
length = 1
Good catch!
The following program prints
length = 2
:If
[0 + 0]
is replaced with[0]
, the program prints the expectedlength = 1
.