make op/3 a predicate call from the query context

This commit is contained in:
Mark Thom
2019-03-31 00:29:53 -06:00
parent 3e67400bd3
commit 35e91ee47c
2 changed files with 2 additions and 1 deletions

View File

@@ -693,6 +693,7 @@ impl RelationWorker {
Ok(TopLevel::Declaration(Declaration::Hook(hook, clause, queue)))
} else if name.as_str() == "?-" {
match setup_declaration(terms.iter().cloned().collect()) {
Ok(Declaration::Op(..)) => {}, // this is now a predicate call in the query context.
Ok(decl) => return Ok(TopLevel::Declaration(decl)),
_ => {}
};