<br><div class="gmail_quote">On Thu, Dec 11, 2008 at 3:32 PM, Andre Mayers <span dir="ltr"><<a href="mailto:andre.mayers@usherbrooke.ca" target="_blank">andre.mayers@usherbrooke.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-CA">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="FR">Eureka. It works. </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Now how to get rid of eval ?</span></p></div></div></blockquote><div>As Noel said, try to write what you want as the final result, instead of using list & list* to create the expression and then eval it.<br>
<br>As an example, the following creates a lambda without list, list*, and eval.<br><br>(define-syntax (tada2 stx)<br> (syntax-case stx ()<br> ((_ a1 a2 ...)<br> #'(lambda (a1 a2 ...)<br> (list a1 a2 ... 'a1 'a2 ...)))))<br>
<br>((tada2 a b c) 1 2 3) ;; => ??<br><br>HTH,<br>yc<br><br></div></div>