[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work4) now available
- From: HyperHacker <hyperhacker@...>
- Date: Sat, 7 Aug 2010 08:44:40 -0600
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.