请问对于LuaJIT有办法设置某个文件为私有环境吗? #1994
-
我用的是LuaJIT,没法用 |
Beta Was this translation helpful? Give feedback.
Answered by
sumneko
Mar 10, 2023
Replies: 1 comment 1 reply
-
没有相关支持,事实上也没什么人用 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
robincodex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
没有相关支持,事实上也没什么人用
_ENV = {}
来写代码,还是老老实实的local M = {}
,然后要导出的类都加个M
前缀,最后return M
吧。