Skip to content

Commit 349dfa1

Browse files
authored
Merge pull request #380 from LPCIC/gares-patch-1
Add 'Occur check' section to ELPI.md
2 parents 7e4220d + 5f6da7e commit 349dfa1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ELPI.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ is very welcome. Questions or feature requests are welcome as well.
5656
so that one can use `.` in a file/path name.
5757

5858
- [Variadic functions](#variadic-functions)
59+
60+
- [Occur check](#occur-check)
5961

6062
- [Tracing facility](#tracing-facility) to debug your programs.
6163

@@ -1050,6 +1052,15 @@ reminder of the division. Only the last output can be variadic.
10501052

10511053
This feature is mainly used for external functions.
10521054

1055+
## Occur check
1056+
1057+
Unification performs occur check by default. One can disable it
1058+
on a predicate basis using the `:nooc` attribute.
1059+
1060+
It is recommended that code that disables occur check guards against
1061+
building cyclic terms using `ground_term`. No mode analysis is performed
1062+
in order to make this dynamic check unnecessary.
1063+
10531064
## Tracing facility
10541065

10551066
Elpi comes with a tracing facility. The feature was designed to debug

0 commit comments

Comments
 (0)