Lua 5.4.0 (alpha-rc1) is now available for testing
All feedback welcome.
1)
Two warning generated by VisualStudio 2010
lobject.c(463) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data
lobject.c(478) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data
2)
The bug with wrong S2N conversion has been reported for previous "work versions", but still not fixed:
for i = "2", 3 do print(math.type(i)) end --> float float
According to the manual, the value must be integer.
3)
The new manual (in the "For Statement" section) says the following:
"You should not change the value of the control variable during the loop."
Does it mean that the following code may stop working correctly in the nearest future?
for i = 1, 10 do i = tostring(i); .... end
The possibility to assign to a loop variable is so nice, please don't remove it from Lua.
Probably, the phrase in the manual should be replaced with more correct one:
"A loop's behavior will not be affected by changing the value of its control variable."