Sainan
unread,May 23, 2025, 12:49:24 PMMay 23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lu...@googlegroups.com
No, errors raised in __gc metamethods are special in that such errors are demoted to warnings, e.g.:
setmetatable({}, {
__gc = function() error("oops") end
})
will exit successfully, and if you enable warnings, it'll print:
warning: error in __gc (index.pluto:2: oops)
-- Sainan