lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am 25.06.19 um 15:14 schröbte Roberto Ierusalimschy:

do
   local io = require 'io'
   local mt = getmetatable(io.stdin)
   mt.__metatable = "not your business"
end

Problem solved? Too hard?

Not good enough.

io.stdin.__index.__gc = nil


Philipp