Clarified the recursive behavior of datum->syntax on hash tables and prefab structs.
svn: r17936
This commit is contained in:
parent
a1d5573613
commit
87712b0dd2
|
@ -157,12 +157,12 @@ needed to strip lexical and source-location information recursively.}
|
||||||
[cert (or/c syntax? #f) #f])
|
[cert (or/c syntax? #f) #f])
|
||||||
syntax?]{
|
syntax?]{
|
||||||
|
|
||||||
Converts the @tech{datum} @scheme[v] to a @tech{syntax object}. If
|
Converts the @tech{datum} @scheme[v] to a @tech{syntax object}.
|
||||||
@scheme[v] is a pair, vector, box, immutable hash table, or immutable
|
The contents of pairs, vectors, and boxes, the fields of @tech{prefab}
|
||||||
@tech{prefab} structure, then the contents are recursively converted;
|
structures, and the values of immutable hash tables are recursively converted.
|
||||||
mutable vectors and boxes are essentially replaced by immutable
|
The keys of @tech{prefab} structures and the keys of immutable hash tables are
|
||||||
vectors and boxes. @tech{Syntax object}s already in @scheme[v] are
|
not converted. Mutable vectors and boxes are replaced by immutable vectors and
|
||||||
preserved as-is in the result. For any kind of value other than a
|
boxes. For any kind of value other than a
|
||||||
pair, vector, box, immutable @tech{hash table}, immutable
|
pair, vector, box, immutable @tech{hash table}, immutable
|
||||||
@tech{prefab} structure, or @tech{syntax object}, conversion means
|
@tech{prefab} structure, or @tech{syntax object}, conversion means
|
||||||
wrapping the value with lexical information, source-location
|
wrapping the value with lexical information, source-location
|
||||||
|
|
Loading…
Reference in New Issue
Block a user