PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org
MIT License
388 stars 26 forks source link

table.clear not updating cached table length #931

Closed aaronlink127 closed 3 months ago

aaronlink127 commented 3 months ago

The following code runs into this

local x = {1}
print(#x)
x:clear()
print(#x)

should print 1 0, but instead prints 1 1.