Posted 13 July 2013 - 02:55 AM
I am trying to split up a rather large program into multiple files. A sample program is shown below:
Is this not the way to include other files with the file you are working on?
--File1
local M = {}
M.variable = 5
return M
--File2
obj = require('File1') <- Error found here
println(obj.variable)
Is this not the way to include other files with the file you are working on?