lua-users home
lua-l archive

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

> Would it be possible to get core functions like debug.getinfo and date
> to take an optional table parameter to fill with the data rather than
> create a new table each time?

Possible, certainly. But once you go this route you have to decide about
the semantics: for instance, should the function replace all fields in
the table or just the ones that are absent?