scsh-users
[Top] [All Lists]

Re: weirdness with when macro

To: briand@zipcon.net
Subject: Re: weirdness with when macro
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Mon, 11 Feb 2002 11:43:40 +0100
Cc: scsh-news@zurich.ai.mit.edu
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "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

<Prev in Thread] Current Thread [Next in Thread>