Re: syntax-case and modules
Dan <[email protected]>
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
> You need to let the module system know that the
> macro needs the
> function, eg:
>
> (module mod ((mac1 f))
> ... )
Thanks, but I get the same error (in SISC 1.15.1):
(module mod ((mac1 f))
(define (f x) x)
(define-syntax mac1
(lambda (syn)
(syntax-case syn ()
((orig . args)
(with-syntax
((res (datum->syntax-object
(syntax orig)
(apply f (syntax-object->datum
(syntax args))))))
(syntax res))))))
)
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642