On Tue, Jul 12, 2011 at 4:36 PM, maurizio.giorda <maurizio.gio...@gmail.com>wrote:
> ** > Hi Matthias, > > ... I will play with your example (it is better than all the words I spent > with my looong > description: > > Here is what I meant: > > #lang racket > > (define-syntax-rule > (mm x) > (lambda (w) (displayln `(,x)) (+ w x))) > > Ok, fine! > > > (define f > (let ([a 10]) > (mm a))) > > (f 42) > > Let me define my function in a inner scope: > > > (let ((othervar 2) > (f (mm (+ 1 othervar)))) > > (f 1) > > it should print 4 but it gives the undefined identifier error. > If I define "othervar" globally (top env) it works (of course!). > > Do you want a let* here instead of let? -Markku
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users