fix docs for syntax-case

Clarify that if `stx-expr` produces a value other than a syntax
object, it is coerced to one using `datum->syntax`.
This commit is contained in:
Matthew Flatt 2015-04-09 15:54:33 -06:00
parent 1d0a32dc61
commit e807e848f9

View File

@ -160,6 +160,10 @@ A syntax object matches a @racket[pattern] as follows:
when its datum is @racket[equal?] to the @racket[quote]d
@racket[const].}
If @racket[stx-expr] produces a non-@tech{syntax object}, then its
result is converted to a syntax object using @racket[datum->syntax]
and the lexical context and source location of the @racket[stx-expr].
If @racket[stx-expr] produces a syntax object that is @tech{tainted}
or @tech{armed}, then any syntax object bound by a @racket[pattern]
are @tech{tainted}---unless the binding corresponds to the whole