I am converting the inference collection over to run on V4.0.1 and I'm having a problem with dynamically evaluating a lambda expression. Here is a snippet of the code that gives the error:<br><br>#lang scheme/base<br>
...<br>(define (activate-rule rule initial-node)<br>...<br> (if (null? match-constraints) ; match-constraint-predicate<br> #f<br> (eval<br> `(lambda ,(if assertion-variable<br>
(cons assertion-variable<br> (pattern-variables pattern))<br> (pattern-variables pattern))<br> (and ,@match-constraints))))<br>
...<br> )<br><br>And, the error I get is:<br><br>compile: bad syntax; function application is not allowed, because no #%app syntax transformer is bound in: (lambda (?size ?peg) (and (not (eq? ?peg (quote right)))))<br><br>
This code works in V372.<br><br>Any ideas?<br><br>Doug<br>