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

goal_expansion/2 too deep #2702

Open
notoria opened this issue Dec 12, 2024 · 1 comment
Open

goal_expansion/2 too deep #2702

notoria opened this issue Dec 12, 2024 · 1 comment

Comments

@notoria
Copy link
Contributor

notoria commented Dec 12, 2024

I tried:

?- [user].
goal_expansion(g(G), call(G)).

:- dynamic(bad/0).
bad :- g(2).

% Warning: clause body goal expansion failed because 2 is not callable.

?- clause(bad, G).
   G = g(2). % unexpected

I expected G = call(2).

@UWN
Copy link

UWN commented Dec 12, 2024

Too nosy...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants