[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"]
- From: Matthew Wild <mwild1@...>
- Date: Wed, 18 Aug 2010 21:42:34 +0100
On 18 August 2010 21:29, Lorenzo Donati <lorenzodonatibz@interfree.it> wrote:
> Matthew:
>>>
>>> On a related note, may I assume from what you said that now the standard
>>> contract for a module can be (incompletely) summarized as in the
>>> following
>>> lines?
>>>
>>> 1. when loaded and called, a module's chunk should return a table
>>> containing
>>> its "exported" symbols
>>> 2. a module should not create any global
>>> 3. ? any more items in the contract?
>>>
>>> (BTW should this contract be the same for both Lua and C modules?)
>>>
>>
>> Without wanting to speak for Roberto, I don't think you can ask
>> questions like these.
>
> I'm sorry if I gave the false impression of wanting to pressure people. If I
> expressed myself in such a way to give such an impression, please let me
> apologize myself. English is not my mother tongue and I hope I didn't convey
> my enthusiasm in learning Lua and my doubts in a way that could upset
> people.
>
No no, I was arguing against your question, not against the words you
used to ask it :)
Perhaps "I don't think you can ask questions like these." would have
been better as "I don't think Roberto (or anyone) can answer questions
like these for you."
Regards,
Matthew
- References:
- Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Lorenzo Donati
- Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Sean Conner
- Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Lorenzo Donati
- Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Roberto Ierusalimschy
- Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Lorenzo Donati
- Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Matthew Wild
- Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"], Lorenzo Donati
- Prev by Date:
Re: cross-compile alien
- Next by Date:
Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"]
- Previous by thread:
Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"]
- Next by thread:
Re: Basic, no fuss, no magic, foolproof module pattern. [Was: require, module, globals and "magic"]
- Index(es):