File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,10 @@ such clause using the `:before` attribute.
241241fatal-error Msg :- !, M is "elpi: " ^ Msg, coq-err M.
242242```
243243
244- The ` :after ` and ` :replace ` attributes is also available.
244+ The ` :after ` , ` :replace ` and ` :remove ` attributes is also available.
245245
246- The ` :replace ` attribute cannot be given to a named clause. This is to avoid
247- the following ambiguity:
246+ The ` :replace ` and ` :remove ` attribute cannot be given to a named clause.
247+ This is to avoid the following ambiguity:
248248
249249``` prolog
250250:name "replace-me"
@@ -260,6 +260,16 @@ p 3.
260260```
261261Here the order in which replacement is performed would matter.
262262
263+ Both ` :replace: ` and ` :remove ` can only apply to rules for the same predicate.
264+ Example:
265+
266+ ``` prolog
267+ :name "this" p 1.
268+
269+ :remove "this" p _. % OK
270+ :remove "this" q _. % Error
271+ ```
272+
263273
264274## Conditional compilation
265275
You can’t perform that action at this time.
0 commit comments