[gambit-list] syntax-rules error

antonitio antonitio at gmail.com
Tue Aug 25 01:00:03 EDT 2009


hi all

i try to define the following syntax:
(define-syntax when
  (syntax-rules ()
     ((_ test stm1 stm2 ...)
        (if test
           (begin stm1
              stm2 ...)))))

but getting the following error with
the bracket pair after syntax-rules highlighted
(in emacs):
*** ERROR IN (stdin)@2.17 -- Ill-formed expression

this occurs on both version 4.4.4 and 4.5.1.

i try on chicken scheme and it works fine.

this is basic stuff but i can't get around it,
have searched on the net but nothing came out.

am i missing something? or?

thanks

antonitio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090825/6cb686e7/attachment.htm>


More information about the Gambit-list mailing list