💬

Community answer

Collected from the ACE community Discord archive around 2018-08-21. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

loadstring custom environment limits

🌙 LuaUpdated 2 days ago•0 views
You can pass an env table to loadstring's second arg in SF, but you can't getfenv inside new functions (it returns the main thread env) - env tricks are limited…

Why did you add then remove custom env in loadstring - can you setfenv loaded chunks

You can pass an env table to loadstring's second arg in SF, but you can't getfenv inside new functions (it returns the main thread env) - env tricks are limited.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.