lua-users home
lua-l archive

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


> 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