From: Veer (diggerrrrr at gmail.com) Date: Thu Apr 21 08:22:10 EDT 2011 |
|
How do I use structure's constructor in define-syntax . I want to do something like this : (struct proc-struct (name args loe)) (define-for-syntax (process ps) #'#t) (define-syntax (procedure stx) (syntax-case stx () [(_ name args e1 e2 ...) (process (proc-struct #'name (syntax->list #'args) (syntax->list #'(e1 e2 ...))))])) (procedure abc (x y) 2 3) Is there something like struct-for-syntax ? Thanks
Posted on the users mailing list. |
|