lua-users home
lua-l archive

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


On Sat, Aug 7, 2010 at 08:42, Petite Abeille <petite_abeille@mac.com> wrote:
>
> On Aug 7, 2010, at 4:36 PM, HyperHacker wrote:
>
>> Two modules in one file would be a simple matter of:
>> local M, N = {}, {}
>> ...
>> return M, N
>> ...
>> myModule, myOtherModule = require('moduleM')
>
> Multiple return values are not supported by require as far as I know.
>
>

Then perhaps it should? Of course, you can return a table as well.

-- 
Sent from my toaster.