Open snoopcatt opened 3 years ago
Maybe it is better to name this function debug.settype
, by analogy with
debug.sethook()
debug.setlocal()
debug.setmetatable()
debug.setupvalue()
Hi, I want to add some facility to create classes easily - but it cannot be something that relies on debug api.
Best approach might be to see an existing library that does the elegantly.
Hello! I suggest to add a bit sugar and create separate function to register new type.
How it looks now:
My suggestion: