Closed negrel closed 2 months ago
Nice thanks!
I added support for this feature, see the linked commit.
Also the new version provides more simple way to run low-level funcs that are safe to longjmp:
unsafe {
lua.with_raw_state((), |state| {
// your code here
})?;
}
I want to override metatable of primitive types such as string. Currently this is not possible as
set_metatable
is only implemented for Table and lua builtinsetmetatable
check that arguments are tables.Is there a way to do so without using unsafe and forking mlua ? If not, do you want to implement it? I can make a PR if you want.