Re: (warn) isn't doing what I expect it to
- From: Edi Weitz <spamtrap@xxxxxxxxxx>
- Date: Tue, 30 Aug 2005 00:14:40 +0200
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")
.
- Follow-Ups:
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- References:
- (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- (warn) isn't doing what I expect it to
- Prev by Date: Re: (warn) isn't doing what I expect it to
- Next by Date: Re: (warn) isn't doing what I expect it to
- Previous by thread: Re: (warn) isn't doing what I expect it to
- Next by thread: Re: (warn) isn't doing what I expect it to
- Index(es):