Re: prefix on syntax-rules
Martin Gasbichler <[email protected]>
| Newsgroups | gmane.lisp.scheme.scsh |
|---|---|
| Message-ID | <a96568w02t.fsf__23149.1157472648$1095751888$gmane$org@informatik.uni-tuebingen.de> |
Anthony Carrico <[email protected]> writes: > I noticed something a little strange: > > (define-structure strange > (export) > (open (with-prefix scheme scheme/)) > (begin > (scheme/define-syntax > foo > ;; for some reason, syntax-rules doesn't cache the scheme/ prefix: > (syntax-rules () ((_) "strange"))) > > (scheme/display (foo)) > (scheme/newline))) Well, I would regard SYNTAX-RULES as a keyword local to DEFINE-SYNTAX. SYNTAX-RULES itself is not exported by SCHEME. So the behaviour you observe is the same as in (define-structure strange (export) (open (with-prefix scheme scheme/)) (begin (scheme/define foo (scheme/cond (else 3))))) where ELSE is not renamed. -- Martin