<br><div class="gmail_quote">On Tue, Jul 12, 2011 at 4:36 PM, maurizio.giorda <span dir="ltr"><<a href="mailto:maurizio.giorda@gmail.com">maurizio.giorda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<u></u>
<div bgcolor="#ffffff" text="#000000">
Hi Matthias, <br>
<br>
... I will play with your example (it is better than all the words I
spent with my looong<br>
description:<div class="im"><br>
<blockquote type="cite">
<div>
<div>Here is what I meant: </div>
<div><br>
</div>
<div>
<div>#lang racket</div>
<div><br>
</div>
<div>(define-syntax-rule</div>
<div> (mm x)</div>
<div> (lambda (w) (displayln `(,x)) (+ w x)))</div>
</div>
</div>
</blockquote></div>
Ok, fine!<div class="im"><br>
<blockquote type="cite">
<div>
<div>
<div><br>
</div>
<div>(define f </div>
<div> (let ([a 10])</div>
<div> (mm a)))</div>
<div><br>
</div>
<div>(f 42)</div>
</div>
</div>
</blockquote></div>
Let me define my function in a inner scope:<br>
<br>
> (let ((othervar 2) <br>
(f (mm (+ 1 othervar))))<br>
> (f 1) <br>
<br>
it should print 4 but it gives the undefined identifier error.<br>
If I define "othervar" globally (top env) it works (of course!).<br>
<br></div></blockquote><div><br>Do you want a let* here instead of let?<br><br>-Markku<br></div></div>