This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Sewbacca's profile picture

__mode implemented?

Started by Sewbacca, 12 September 2016 - 09:22 AM
Sewbacca #1
Posted 12 September 2016 - 11:22 AM
Hey guys,

Is the metafield __mode implemented?
collectgarbage() isn't implemented and
I am too lazy for a long time test.

I would test it as follows

local t = {
  no = {}
}
setmetatable(t, {__mode = 'v'})
while t.no do
  sleep(1)
end
print('works')
but I don't do it, so I ask it.

Sewbacca
apemanzilla #2
Posted 12 September 2016 - 02:03 PM
It's not implemented, along with most other gc-related Lua features.