[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: double macro
- To: Gallagher@gilgamesh.cs.umass.edu, alms@cambridge.apple.com
- Subject: Re: double macro
- From: Ranson <ranson@lannion.cnet.fr>
- Date: 11 Mar 91 08:01:00
- Cc: info-macl@cambridge.apple.com, keunen@milou.nrb.be, ranson@lannion.cnet.fr
- X400-received: by /PRMD=inria/ADMD=atlas/C=fr/; Relayed; 11 Mar 91 07:59:46+0100
- X400-received: by /PRMD=CNET/ADMD=ATLAS/C=FR/; Relayed; 11 Mar 91 08:01:00
You can go one step further, and only rebind the argument if it is a CONS
(multiple evaluation of atoms is not a problem. Unless SYMBOL-MACROLET
changed that?). But this can get really cumbersome if you have multiple
arguments. The next obvious (?) step is to write a macro WITH-SAFE-ARGS
that does this for you. I will leave this as an exercise for the reader :-)
Daniel Ranson.
ranson@lannion.cnet.fr