hi all<br><br>i try to define the following syntax:<br>(define-syntax when<br>  (syntax-rules ()<br>     ((_ test stm1 stm2 ...)<br>        (if test<br>           (begin stm1<br>              stm2 ...)))))<br><br>but getting the following error with<br>
the bracket pair after syntax-rules highlighted<br>(in emacs):<br>*** ERROR IN (stdin)@2.17 -- Ill-formed expression<br><br>this occurs on both version 4.4.4 and 4.5.1.<br><br>i try on chicken scheme and it works fine.<br>
<br>this is basic stuff but i can't get around it,<br>have searched on the net but nothing came out.<br><br>am i missing something? or?<br><br>thanks<br><br>antonitio<br>