aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/ltac2.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/ltac2.md b/doc/ltac2.md
index a645331e2d..51e3ab664d 100644
--- a/doc/ltac2.md
+++ b/doc/ltac2.md
@@ -692,6 +692,17 @@ foo 0 ↦ (fun x => x ()) (fun _ => 0)
Note that abbreviations are not typechecked at all, and may result in typing
errors after expansion.
+# Compatibility layer with Ltac1
+
+## Ltac1 from Ltac2
+
+One can call Ltac1 code from Ltac2 by using the `ltac1` quotation. It parses
+a Ltac1 expression, and semantics of this quotation is the evaluation of the
+corresponding code for its side effects.
+
+Beware, Ltac1 **cannot** access variables from the Ltac2 scope. One is limited
+to the use of standalone function calls.
+
# Transition from Ltac1
Owing to the use of a bunch of notations, the transition shouldn't be