lua-users home
lua-l archive

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


On Wed, Jan 23, 2013 at 6:27 PM, Jorge <xxopxe@gmail.com> wrote:
> "If it's not broken, you haven't finished yet" :)

I shall remember this!  OK, latest revision fixes that issue.

> table.pack = table.pack or function() end
> table.pack()

The get-errors make sense, but you may wonder why the table set was
not detected.  Works ok for reasonably simply cases,  like if we
directly modified table.pack.  But the logic to pick up subfield
modification is a little delicate. since it tries to match GETGLOBAL
"table" SETTABLE "pack" in a naive way.

steve d.