Arc Forumnew | comments | leaders | submitlogin
1 point by rincewind 6091 days ago | link | parent

I just wanted to know whether this is possible without using eval. I'll try.


2 points by rincewind 6091 days ago | link

thats it

   (mac spel (name args body)
     `(mac ,name args
       (if (isnt len.args ,(len args))
         (err "wrong number of spel arguments"))
       ((rfn spel-rewrite (b)
         (aif acons.b
           (map spel-rewrite b)
         (pos b ',args)
            args.it
          b)) ',body)))

-----