"include" does not return a value
Shark-vil opened this issue · 2 comments
Shark-vil commented
luapack/lua/luapack/cl_overrides.lua
Lines 80 to 97 in 7d602d0
Wiki
https://wiki.facepunch.com/gmod/Global.include
Expected
The result of the script execution (vararg)
Now
Just compiles the code, and does not return the compilation result. There is a chance to break scripts that are dependent on the result of execution. For example:
local BaseClass = include('mod_core/classes/base_class.lua')
Shark-vil commented
Tell me if I'm wrong. 🤔
danielga commented
This is fixed on the develop
branch.