My projects getting quite large and I need to split it up into logical files
im using
– Load Interface
require(“interface”);
which loads the file interface.lua, so far so good
now heres the problem / question
in main.lua my code was the following
local interface()
–Do Interface Stuff
end
interface();
but that doesnt work when included with the require(interface), I have to instead remove the local from the function declaration
--------------interface.lua
interface()
–Do Interface Stuff
end
--------------main.lua
require(“interface”);
interface();
whats actually happening here? is it the same or am I opening myself upto memory leaks?
[import]uid: 5354 topic_id: 569 reply_id: 300569[/import]