[MSLUG] scheme macro question

Burlen Loring bloring at cisunix.unh.edu
Mon Oct 18 00:10:04 EDT 2004


Hi, I hope that this list is open to questions, and from beginers.

Can anyone give advise on how to define a macro so that there can be a 
left and a right argument?

like:

(define-syntax =
  (syntax-rules ()
   ((a = b) (set! a b))
))

this doesn't work and I really don't understand why.
I am using PLT mzscheme.

Burlen Loring




More information about the MSLUG mailing list