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