You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe goal_expansion(G, call(G)) :- \+ is_body(G) is expected to loop since dynamic goals are expanded but the body of head/0 is valid, it should not loop here.
The text was updated successfully, but these errors were encountered:
?- [user].
goal_expansion(a(A,B), b) :-
var(B).
:- dynamic(test/0).
test :-
call(a(_, 0)),
call(a(_), 1),
call(a, _, 2).
% Warning: singleton variables A at line 1 of user
?- clause(test, G).
G = (call(user:a(_A,0)),call(user:b,1),call(user:b,_B,2)). % unexpected.
?-
Expected: G = (call(user:a(_A,0)),call(user:a,1),call(user:a,_B,2)).
I tried this code:
The expansion loops because invalid bodies are introduced and Scryer expands dynamic goals at compile-time:
Maybe
goal_expansion(G, call(G)) :- \+ is_body(G)
is expected to loop since dynamic goals are expanded but the body ofhead/0
is valid, it should not loop here.The text was updated successfully, but these errors were encountered: