Closed Kampfkarren closed 5 years ago
This implementation isn't correct -- yields go through pcall
, they don't stop at pcall
. We're going to need a lot more black magic than this in order to implement this in Lua I'm pretty sure.
Closing then.
Lua does have a page dedicated to getting this working, but I'm not sure if using a custom Lua implementation is reasonable (although it would allow for neat stuff like __namecall).
I have no idea what the consequences of something like this are; overriding a builtin as well as the way it was implemented.