[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A little bit about nothing (was Re: Empty? No. Array? No. Has? Yes.)
- From: Andrew Starks <andrew.starks@...>
- Date: Wed, 3 Jul 2013 12:03:45 -0500
This does not work though. Your version of something will always
report something, unless something is called:
if select('#',...) == 0 then
local mary = ...
On Wed, Jul 3, 2013 at 11:53 AM, Pierre-Yves Gérardy <firstname.lastname@example.org> wrote:
> On Wed, Jul 3, 2013 at 6:20 PM, Sean Conner <email@example.com> wrote:
>> function something(mary) --[[ something about mary ]] end
>> In straight Lua, there is no way for something to know if it was called
> function something(...)
> if select('#',...) == 0 then
> -- something about nothing
> local mary = ...
> -- something about mary
> That being said, it is not concise.
> -- Pierre-Yves