Warn for 5.3 and earlier
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Warn for 5.3 and earlier
- From: DarkWiiPlayer <darkwiiplayer@...>
- Date: 2020年5月12日 20:12:28 +0200
Greetings Lua-l!
I was getting a bit annoyed that `warn` exists now but it can't really
be used in any code that needs to run on older versions of Lua (which is
really most code I write), so I threw together a quick pure-Lua
implementation.
It's available on github: https://github.com/darkwiiplayer/lua-warn
and on Luarocks: luarocks install warn
It can both monkey-patch the warn function everywhere or just return its
custom implementation, depending on whether environment pollution is
acceptable.
I hope you find it useful :D
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org