Re: Generating a warning...

Subject: Re: Generating a warning...
From: Chris Maden <crism@xxxxxxxxxxx>
Date: Wed, 28 Oct 1998 15:11:08 -0500 (EST)
[Norman Walsh]
> 
> / Avi Kivity <Avi@xxxxxxxxxxxxx> was heard to say:
> | (debug "warning: you have 10 seconds to self destruct") ?
> 
> DDDDDUUUUUUHHHHHHH!!!!
> 
> Thank you, Avi.

Remember that (debug) returns the object as well as echoing its
representation to the console.  So you have to construct a context in
which a string is legal and won't show up in the document.

I've gotten around that by wrapping the warning context in a (let) or
(let*), and setting some useless symbol to the debugging string.

-Chris
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread