[racket] variables within macros

From: Laurent (laurent.orseau at gmail.com)
Date: Thu Jan 17 08:40:16 EST 2013

Greg Hendershott's pages may be of interest to you:
http://www.greghendershott.com/fear-of-macros/
And I think you can find some worthwhile notes on the PLT blog too.

Laurent


On Thu, Jan 17, 2013 at 11:08 AM, Tim Brown <tim.brown at cityc.co.uk> wrote:

> Danny, Jens Axel, Ian, Ray,
>
> Thanks for your input... I'm absorbing it all.
>
> I need some really basic help getting my head around all of this.
> Where can I download a copy of "How to Design Macros"? :-)
>
> Tim
>
>
> On 16/01/13 17:22, Jens Axel Søgaard wrote:
>
>> Hi Tim,
>>
>> Danny explains the problem well.
>> To accumulate a result, one must stay in the same
>> same dynamic extent. One way to solve the problem
>> is to use local-expand. In some cases one can
>> write expanders  for the forms, that needs analysing
>> and call them directlye (rather than write a macro
>> for the subform and then let the expander
>> call a macro transformer).
>>
>> Below is a short example, which incidently shows
>> an alternative solution the local-expand problem,
>> I had the other day
>> (see  http://www.mail-archive.com/**users@racket-lang.org/**msg15937.html<http://www.mail-archive.com/users@racket-lang.org/msg15937.html>).
>>
>> If you need local-expand, then see Matthews answer on how
>> to use definition contexts with local-expand.
>>
>> /Jens Axel
>>
>
> --
> Tim Brown <tim.brown at cityc.co.uk>  | City Computing Limited            |
> T: +44 20 8770 2110                | City House, Sutton Park Road      |
> F: +44 20 8770 2130                | Sutton, Surrey, SM1 2AE, GB       |
> ------------------------------**------------------------------**
> -----------|
> BEAUTY:  What's in your eye when you have a bee in your hand           |
> ------------------------------**------------------------------**
> -----------'
> City Computing Limited registered in London No. 1767817.
> Registered Office: City House, Sutton Park Road, Sutton, Surrey, SM1 2AE
> VAT number 372 8290 34.
>
>
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/**users <http://lists.racket-lang.org/users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130117/09292e54/attachment.html>

Posted on the users mailing list.