Fix problem with syntax-parameterize.

Need to change order of examples so that `it` is still
undefined in the evaluator. (Is there a way to "reset"
the evaluator, for situation like this?)
This commit is contained in:
Greg Hendershott 2012-10-24 20:23:13 -04:00
parent c0650a310a
commit 6d06141751
2 changed files with 13 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@ -724,13 +724,6 @@ define @racket[it] to mean an error by default. Only inside of our
(aif #f (displayln it) (void))
]
We can still use @racket[it] as a normal variable name:
@i[
(define it 10)
it
]
If we try to use @racket[it] outside of an @racket[aif] form, and
@racket[it] isn't otherwise defined, we get an error like we want:
@ -738,12 +731,20 @@ If we try to use @racket[it] outside of an @racket[aif] form, and
(displayln it)
]
Perfect.
But we can still define @racket[it] as a normal variable:
@i[
(define it 10)
it
]
@; ----------------------------------------------------------------------------
@section{Robust macros: syntax-parse}
TO-DO.
TO-DO.
TO-DO.
@; ----------------------------------------------------------------------------