The code is now much cleaner, and the type id is now stored directly in memory as described in #115
Not everything has been reworked though.
Eventually read_userdata should be split between read_userdata and read_mut_userdata and implement for any L that implements AsLua or AsMutLua. Same for the implement_lua_read! macro that could finally become safe.
Unfortunately this is blocked on #118.
Fix #115
The code is now much cleaner, and the type id is now stored directly in memory as described in #115
Not everything has been reworked though. Eventually
read_userdata
should be split betweenread_userdata
andread_mut_userdata
and implement for anyL
that implementsAsLua
orAsMutLua
. Same for theimplement_lua_read!
macro that could finally become safe. Unfortunately this is blocked on #118.