lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Sep 25, 2006 at 04:58:59PM -0700, Ken Smith wrote:
> Right.  Ok.  I can use the non-syntactic sugar version to create my
> list of functions.  Thank you for the responses.

Or just

list = {
  function() return "a" end,
  function() return "b" end,
  function() return "c" end,
}
print(list[2]())

-- 
Glenn Maynard