Putting evaluated constants in a CASE

From: Jeff (jma_at_nospam.insightbb.com)
Date: 08/23/04


Date: Sun, 22 Aug 2004 22:57:57 GMT

Is there any way to do this?

(defconstant *X* 10)
(case 10 (*X* t)) ==> NIL

It would be really nice to use CASE with constants of some kind. I
could always fall back on COND or IF's, and that isn't a problem. But
if I'm missing a simple backquote operation or syntax construct, I'd
like to learn it ;)

Jeff



Relevant Pages

  • Re: Putting evaluated constants in a CASE
    ... Jeff wrote: ... > could always fall back on COND or IF's, ... It quotes *X*, so your answer appears to be "no". ... the macro you want would be ten minutes' work. ...
    (comp.lang.lisp)
  • Re: Generating recursive macros
    ... Jeff wrote: ... there must be a little something wrong in my macro. ... Had to do with some gensym's being local in a cond ... ((multiple-value-bind (m n) ...
    (comp.lang.lisp)