PiL 3 and pcall
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: PiL 3 and pcall
- From: "Pierre Chapuis" <catwell@...>
- Date: 2013年1月31日 09:46:05 +0100
In PiL 3 chapter 8 there is this exercise:
"Can you find any value for f such that the call pcall(pcall,f)
returns false as its first result?"
Spoiler: the answer is yes, but the solution I found is convoluted and
involves the use of the debug library. Has anyone found a way to do it
*without* debug?
--
Pierre Chapuis