[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PiL 3 and pcall
- From: liam mail <liam.list@...>
- Date: Thu, 31 Jan 2013 11:56:42 +0000
On 31 January 2013 11:25, liam mail <liam.list@googlemail.com> wrote:
> 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
Ignore me that is not what was asked for, instead it was pcall(pcall,f)
/me hides his head in shame
--Liam