[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Universal Catch
From: firstname.lastname@example.org (Robert Kessler)
Subject: Re: Universal Catch
Yes, a catch barrier is what I am thinking about. My top loop analogy
was just that, you want to be able to keep any errors or extraneous throws
from leaving your top loop. One does need to be able to get the value
of the tag though. I suppose that one could use a really disgusting
hack with unwind-protect where instead of exiting in the cleanup forms,
the code could recursively call the top loop. Geez that would be a real
You don't need a recursive call. Below will keep doing <stuff> forever.
(loop (block toplevel
(return-from toplevel nil))))
Of course it doesn't give you access to the tag that was thrown to.