Re: PiL 3 and pcall
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: PiL 3 and pcall
- From: liam mail <liam.list@...>
- Date: 2013年1月31日 11:25:39 +0000
On 31 January 2013 11:23, liam mail <liam.list@googlemail.com> wrote:
> On 31 January 2013 08:58, Geoff Leyland <geoff_leyland@fastmail.fm> wrote:
>> Does the absence of a value count?
>
> I would think that is cheating :)
>
> "1" can be replaced with pretty much anything
> print( pcall(pcall(xpcall,function()end,1)))
>
> --Liam
I was thinking too much it can be simplified to
print( pcall(pcall(function()return false end)))
--Liam