Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify infer_meta_predicate/2 such that ? is reported rather than * #897

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions library/prolog_metainference.pl
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@
%! infer_meta_predicate(:Head, -MetaSpec) is semidet
%
% True when MetaSpec is a meta-predicate specifier for the
% predicate Head. Derived meta-predicates are collected and made
% available through inferred_meta_predicate/2.
% predicate Head following the same format as meta_predicate/1.
% Derived meta-predicates are collected and made available
% through inferred_meta_predicate/2.

infer_meta_predicate(Head, MetaSpec) :-
inferred_meta_predicate(Head, MetaSpec),
Expand Down Expand Up @@ -228,7 +229,7 @@
-> C = B
; is_meta(A), is_meta(B)
-> C = (:)
; C = *
; C = ?
).

attr_unify_hook(A0, Other) :-
Expand Down Expand Up @@ -286,7 +287,7 @@
HeadArg = M:_,
get_attr(M, prolog_metainference, m),
!.
meta_arg(_, *).
meta_arg(_, ?).

%! combine_meta_args(+Heads, -Head) is det.
%
Expand Down