[racket] Macros in slideshow

From: Reuben Thomas (rrt at sc3d.org)
Date: Wed Jan 21 10:09:52 EST 2015

On 21 January 2015 at 14:45, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> You're right that the essential problem is that `with-steps` introduces
> binding no-hygienically. Non-hygienic macros don't compose nicely.
>
> If `with-steps` were written in modern Racket, then it would be
> hygienic, where `vonly`, etc., are bindings that take their meaning
> as syntax parameters from an enclosing `with-steps`. Fortunately, it's
> possible to implement a more modern `with-steps` using the existing one.
>
> Use the enclosed "new-step.rkt" in place of `slideshow/step`, and then
> your `correct` macro will work.
>

​Thanks very much, works a treat!

-- 
http://rrt.sc3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150121/9b0bebb3/attachment.html>

Posted on the users mailing list.