[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: syntactic sugar for imports and exports
- From: Daurnimator <quae@...>
- Date: Thu, 20 Oct 2011 09:54:16 +1100
I agree about your 'projection' bit; even if I do hate the operator
The injection not so much;
I usually just return a table at the end of my modules:
-- My module
local function foo() end
local function bar() end
return {
init_foo = foo ;
bar = bar
}
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, David Manura
- Re: modules, require, magic, Hisham
- Re: modules, require, magic, Tony Finch
- Re: modules, require, magic, Hisham
- Re: modules, require, magic, Tony Finch
- syntactic sugar for imports and exports, Tony Finch