|
On Thu, Mar 6, 2014 at 10:14 AM, Journeyer J. JohJust something like this:
<oosaprogrammer@gmail.com> wrote:
> I want my module return a function.
> For my particular case, Is there any convenient function like module(...)?
-- ftest.lua
return function(a)
return {value = a}
end
then require 'ftest' will give you a function, which you can call.