Exporting auxiliary syntax keywords
Asked by
leppie
Hi
I am not sure what is the correct behaviour with the following snippet/execution:
(library (foo)
(export mycond3)
(import (rnrs))
(define-syntax mycond3
(syntax-rules (else3) [(_ (else3 e)) e])))
(import (foo))
(mycond3 (else3 #t)) => #t
(define else3)
(mycond3 (else3 #t)) => syntax violation
If you do the same for 'else' there is no syntax violation, as 'else' is exported as auxiliary syntax. I however see no way for a user to export his own auxiliary syntax, and hence the syntax violation.
So, if not a bug, how can one deal with this?
Cheers
leppie
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- leppie
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #260143.
To post a message you must log in.