It would be interesting to see the complete code. with All definitions.
OK, I just got it XD
I had too many parentheses in the query. The correct form is: (? (vertical line (point 1 2) (point 1 3))) But that leaves me with the question, Why is the syntax "(vertical line (..." instead of "(vertical (line ..." ? My best guess is that, internally, the symbol 'vertical gets consed into the rest of the predicate, as defined in its property list. that is, when you run: : (show 'vertical) vertical NIL T (((line (point @X @Y) (point @X @Z)))) -> vertical the name of the sym (vertical) gets consed into the (line (point @X @Y) (point @X @Z)) part, and since that's what is used to unify the query, the query must have that same "(vertical line ..." structure. But that's just a guess. If there is some deeper meaning I would be happy to know :D On Mon, Jul 2, 2018 at 11:23 PM Bruno Franco <[email protected]> wrote:
| ||
- Pilog unification of a nested predicate Bruno Franco
- Re: Pilog unification of a nested predicate Bruno Franco
- Re: Pilog unification of a nested predicate Johann-Tobias Schäg
- Re: Pilog unification of a nested predic... Bruno Franco
- Re: Pilog unification of a nested predicate Alexander Burger
- Re: Pilog unification of a nested predic... Bruno Franco
- Re: Pilog unification of a nested pr... Alexander Burger
- Re: Pilog unification of a nest... Bruno Franco
