moonsharp icon indicating copy to clipboard operation
moonsharp copied to clipboard

Fix for #198 (var args are nil when void is passed)

Open Joy-less opened this issue 2 years ago • 0 comments

function x(...)
  print(select('#', ...))
end
x()

Previous output: 1 New output: 0

Previously, when nothing was passed to variadic arguments (...) it would actually pass nil. With the fix, it passes nothing.

Joy-less avatar Aug 12 '23 22:08 Joy-less