[Chicken-users] Re: stressing the new hygienic macros

2009-05-01 Thread Michele Simionato
Does require-for-syntax work with Chicken 4? As an exercise, I was trying to define a simple define macro as follows: (require-for-syntax 'matchable) (define-syntax def (lambda (x r c) (match x (('def (name . args) body body* ...) `(define ,name (lambda ,args ,body ,@body*)))

Re: [Chicken-users] Re: stressing the new hygienic macros

2009-05-01 Thread Jim Ursetto
On Fri, May 1, 2009 at 10:28 AM, Michele Simionato michele.simion...@gmail.com wrote: Does require-for-syntax work with Chicken 4? As an exercise, I was trying to define a simple define macro as follows: (require-for-syntax 'matchable) You want (require-library matchable) (import-for-syntax

Re: [Chicken-users] Re: stressing the new hygienic macros

2009-05-01 Thread Michele Simionato
On Fri, May 1, 2009 at 6:12 PM, Jim Ursetto zbignie...@gmail.com wrote: You want (require-library matchable) (import-for-syntax matchable) Works like a charm, thanks. BTW, are there already libraries marrying low level macros with matchable? ___