On Apr 19, 2009, at 4:49 PM, Michele Simionato wrote:
Is this a bug of the REPL, or what? This has caused me lots of
pain and a head scratching ...
It looks like this is both a bug in the repl and a typical problem
with the interaction between unbound auxiliary keywords and the repl
environment. I will investigate this more but to cut the story
short, you need to bind your auxiliary keywords. If you change the
top of your library to look like:
(library (x)
(export syntax-match def-syntax sub) ;;; added export
(import (rnrs))
(define-syntax sub ;;; added definition
(lambda (x)
(syntax-violation #f "incorrect use of auxiliary keyword" x)))
#| rest unchanged, better do the same for <source> |#)
everything will work as you'd expect.
Aziz,,,