Hi (hopely Steve Donovan),
I've been told that a module can return a function instead of a normal table.
PIL introduces a function module(...) which is same with below:
local modname = ...
local M = {}
_G[modname] = M
package.loaded[modname] = M
<external values setting to reach from this module>
setfenv(1, M)
This returns normal table.
I want my module return a function.
For my particular case, Is there any convenient function like module(...)?
And if there is not such a function,
I'd like to find a sample code for a module returning a function.
Sincerely
Journeyer
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l d o t c o m
----------------------------------------