Skip to content

Commit

Permalink
Document typevar.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Apr 1, 2016
1 parent 3598599 commit 66da2a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/qast.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ Finally, there are a couple of other values of decl that work with lexicals.
* contvar - means that the lexical should be initialized to a clone of the
:value(...) argument. Presumably, this represents some kind of container
type. There are no restrictions on re-binding.
* typevar - means that the implementation is allowed to assume that the type of the variable doesn't change
* statevar - same as for contvar, except the container created will be used
for all given closure clones. To be clear, cloning a code ref doesn't bring
state variables along. On the initial call, containers are formed in the way
Expand Down

0 comments on commit 66da2a2

Please sign in to comment.