>>>>> "Brian" == Brian Denheyer <briand@zipcon.net> writes:
Brian> As usual, I always figure things out 10 min after I post.
Brian> It looks as though "loading" a file with syntax definitions doesn't
Brian> seem to work as I would expect.
Brian> The exact same code works just fine if I load the macros using :
Brian> #!/usr/local/bin/scsh \
Brian> -l ~/src/scheme/lib/r5rs-macros.scm -e main -s
Brian> !#
Brian> instead of :
Brian> (load "~/src/scheme/lib/r5rs-macros.scm")
Brian> Does this make sense ?
No, since -l calls LOAD.
I also cannot reproduce your problem:
aubisque[85] cat when.scm
(define-syntax when
(syntax-rules
()
((when test body ...)
(if test (begin body ...)))))
aubisque[86] scsh
Welcome to scsh 0.6.0 (Chinese Democracy)
Type ,? for help.
> (load "when.scm")
when.scm
> (when #f 3)
> (when #t 3)
3
>
--
Martin
|