[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: strangeness in handling tables (bb)
- From: Kristofer Karlsson <kristofer.karlsson@...>
- Date: Sun, 21 Jun 2009 22:14:08 +0200
That's false, print returns nothing, which is different from returning nil.
Compare the following:
function return_nil() return nil end
function return_nothing() end
It only seems like print returns nil, if you expand the return value list to atleast one, which you always do when using it like this:
local x = print()
On Sun, Jun 21, 2009 at 9:52 PM, <firstname.lastname@example.org>
Perhaps I misunderstand the situation. This would seem to be resolved
by the fact that (as stated) the return value of print() is nil.