Brian Mastenbrook writes: > It's a capture problem. In the first case, you're just binding the > name "send" locally and all is well. In the second case, you're > trying to introduce a binding for "send" that you didn't get from > the input form.
Ahhh.... that one has bitten me before, but I had forgotten about it. Thanks for the reminder! > You're also getting a confusing error because "send" is already > bound; try using a name that's not already defined and you should > get an unbound identifier. I used a bound symbol intentionally to see if I can shadow an existing syntax transformer binding. > Alternatively, you can use a syntax parameter, which is probably > the ideal solution here. At least it's one that works. It feels like cheating to use dynamic scoping to get around a problem with lexical scoping, but knowing when to cheat is a fundamental competence when dealing with any bureaucracy ;-) Thanks again, Konrad. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.