lua-users home
lua-l archive

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


On Jan 23, 2008 9:59 AM, steve donovan <steve.j.donovan@gmail.com> wrote:
The hack is to detect if any non-nil value is returned, but
it leaves this rather important 'corner' case broken:

try
 return
else
end
print 'gets here!'

Works with my version: returned_values would contain { }  rather than nil if an empty return was caught. If you handle multiple return values correctly, returning zero values is not a special case.

-- Fabien.