Add note on `match' semantics.

This commit is contained in:
Sam Tobin-Hochstadt 2011-10-06 18:29:28 -04:00
parent 463a34ec90
commit 9cc2c441ee

View File

@ -349,7 +349,14 @@ In more detail, patterns match as follows:
@item{@racket[_derived-pattern] --- matches a pattern defined by a
macro extension via @racket[define-match-expander].}
]}
]
Note that the matching process may destructure the input multiple times, and
may evaluate expressions embedded in patterns such as @racket[(#,(racketidfont
"app") expr pat)] in arbitrary order, or multiple times. Therefore, such
expressions must be safe to call multiple times, or in an order other than they
appear in the original program.
}
@; ----------------------------------------------------------------------