aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/proof-engine
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-01-30 08:18:49 +0100
committerPierre-Marie Pédrot2020-05-11 13:23:05 +0200
commit457cee4345ab4ad6b6624a6886841fd0b0739b2a (patch)
treebd49b758f0248198de001f69e388778bdd71d8b9 /doc/sphinx/proof-engine
parent0abac9befe6f165dd7829430a229192e6cb18453 (diff)
Allow to rebind the old value of a mutable Ltac2 entry.
Diffstat (limited to 'doc/sphinx/proof-engine')
-rw-r--r--doc/sphinx/proof-engine/ltac2.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/sphinx/proof-engine/ltac2.rst b/doc/sphinx/proof-engine/ltac2.rst
index 35062e0057..0eb7ac6bb2 100644
--- a/doc/sphinx/proof-engine/ltac2.rst
+++ b/doc/sphinx/proof-engine/ltac2.rst
@@ -226,12 +226,14 @@ Ltac Definitions
If ``mutable`` is set, the definition can be redefined at a later stage (see below).
-.. cmd:: Ltac2 Set @qualid := @ltac2_term
+.. cmd:: Ltac2 Set @qualid {? as @lident} := @ltac2_term
:name: Ltac2 Set
This command redefines a previous ``mutable`` definition.
Mutable definitions act like dynamic binding, i.e. at runtime, the last defined
value for this entry is chosen. This is useful for global flags and the like.
+ The previous value of the binding can be optionally accessed using the `as`
+ binding syntax.
Reduction
~~~~~~~~~