[Chicken-users] Getting a macro to see a runtime form?

2006-01-05 Thread Reed Sheridan
I'm trying to write a macro that translates a list into a procedure. Here's a very simplified version of my code: (define spec '(foo)) (define (process-spec spec) (if (pair? spec) '(lambda x x) (error oops))) (define-macro (spec-proc a-spec) (process-spec a-spec)) #

Re: [Chicken-users] Getting a macro to see a runtime form?

2006-01-05 Thread felix winkelmann
On 1/5/06, Reed Sheridan [EMAIL PROTECTED] wrote: I'm trying to write a macro that translates a list into a procedure. Here's a very simplified version of my code: (define spec '(foo)) (define (process-spec spec) (if (pair? spec) '(lambda x x) (error oops))) (define-macro