[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question to `case'
From: |
Barry Margolin |
Subject: |
Re: question to `case' |
Date: |
Wed, 23 Mar 2005 08:07:40 -0500 |
User-agent: |
MT-NewsWatcher/3.4 (PPC Mac OS X) |
In article <upsxqiliv.fsf@sdm.de>, Klaus Berndl <klaus.berndl@sdm.de>
wrote:
> Can i use variables for the keys of the KEY-CLAUSES?
No. The keys are actually a list of constants. If it were evaluated, a
list would be treated as a function call.
> Of course the notation above can not work but my question is: What is right
> notation?
Use 'cond' instead:
(let ((type (tree-node->type node)))
(cond (eq type my-bucket-node-type) ...)
(eq type my-tag-node-type) ...)))
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***