lua-users home
lua-l archive

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

Mike Pall wrote:
Is this fix also relevant to vanilla 5.1w4?

Yes. Patch below.

Minimum test case, derived from Mark Hamburg's example:

  function v(f, ...) print("test", f() ~= 1 and "FAILED" or "OK") end
  local x = 1
  return v(function() return x end)

My RVM patch has been updated, too. New patch+patched distro has been
uploaded to the Wiki.

I've checked, and this fix made it to 5.1w5.

Adam D. Moss   -