lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jan 20, 2020 at 3:25 AM Soni "They/Them" L. wrote:
require("foo.bar", "res.txt") would look for "res.txt" as a file in
module "foo.bar"

What value is expected to be returned by require("foo.bar", "res.txt")?

Why not using a function for the same task?
local res = require("foo.bar").get_resource()