[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Re: stressing the new hygienic macros
From: |
Michele Simionato |
Subject: |
[Chicken-users] Re: stressing the new hygienic macros |
Date: |
Fri, 1 May 2009 17:28:23 +0200 |
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*)))
(('def name value) `(define ,name ,value))))
That should work, isn't it? However I get
Error: unbound variable: require-for-syntax
Maybe things have changed, or maybe I have simply forgotten the right
incantations, I have been a few years without touching Chicken, and
searching the Chicken Wiki for require-for-syntax does not give
immediately useful info (it points mostly to Chicken 3 pages).
Help is appreciated!
- [Chicken-users] Re: stressing the new hygienic macros,
Michele Simionato <=