Skip to content

Complex use cases of meta_predicate declaration #2556

Answered by UWN
hurufu asked this question in Q&A
Discussion options

You must be logged in to vote

You are over-stretching the capacities of meta-predicate declarations (as they exist in SICStus). You seem to expect that they have the full capacity of a type system. But they can cover only a small part of it. In both cases, a meta-predicate declaration does not make sense. That means that their G_1 and G_2 should already be explicitly qualified. (I am somewhat tempted to say that the ensuing call/2/3 should best insist on such an explicit qualification. But this would probably break a lot of code...)

In a way, meta-predicate declarations help to add the missing explicit qualifications. And, as long as everything can be expressed with them, they help to cross-reference code as well. You…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@hurufu
Comment options

@UWN
Comment options

Answer selected by hurufu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants