[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: sunday afternoon whishlist
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 9 May 2010 15:37:44 -0300
> I find this both useful and consistent with the rest if nil's semantics, esp. that a function returns nil by default.
Functions do not return nil by default: in the absence of a return statement,
a function returns nothing when it ends. It's when the return values of such
a function are assigned that the function seems to return nil; what's is
actually happening is adjustment. See
http://www.lua.org/manual/5.1/manual.html#2.4.3