|
Gregg Reynolds wrote:
The chunk (the entire body of a file) is considered a function. So it can explicitely return something, e.g.There's something I'm not understanding about dofile. The manual says: " Returns all values returned by the chunk"
-- foo.lua -- some stuff return 5, 6, "bar" -- end of foo.luareturn doesn't have to be the last statement but it has to be "top-level" that is, not inside some function.
-- Shmuel