[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Could require take multiple arguments?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 28 Jan 2016 16:39:35 -0200
> one could write
>
> local gui, rpr = require('gui', 'rpr')
Try this:
local _require=require
function require(...)
local a={...}
for i=1,#a do
a[i]=_require(a[i])
end
return table.unpack(a)
end