Re: (warn) isn't doing what I expect it to



On Mon, 29 Aug 2005 23:13:44 +0100, Nathan Baum <nathan_baum@xxxxxxxxxxxxxx> wrote:

> So HANDLER-CASE unwinds the dynamic environments before executing
> its forms. Most unexpected. It works if I use HANDLER-BIND.

Why unexpected? That exactly is the difference between HANDLER-CASE
and HANDLER-BIND.

> (handler-bind
> ((warning #'(lambda (c) (muffle-warning c))))
> (warn "foo"))
>
> I think that's a bit ugly, though.

I don't think that's ugly. You can replace the lambda form with
#'MUFFLE-WARNING, though.

Cheers,
Edi.

--

Lisp is not dead, it just smells funny.

Real email: (replace (subseq "spamtrap@xxxxxxxxxx" 5) "edi")
.