lua-users home
lua-l archive

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

On Mon, Feb 20, 2012 at 12:45 AM, Jay Carlson <> wrote:
> Casual module loading scares me.

For _programs_, it's bad practice. For interactive work and the
proverbial 'useful little script' it's a strategy. Ditto for
monkey-patching tostring.  The str/repl distinction is probably more
important than I think.

> I'll idly note that "return f(unpack(imap(g, {...})))" seems to pop up
> now and then and has an efficient C implementation not available in
> Lua--you mutate the stack in-place,

Xavier has proposed a set of C-level functions operating on argument
lists.  A good case for C, I think.

steve d.