Skip to content

Fix utils.pl - #16

Merged
ekaf merged 1 commit into
ekaf:WNprolog-3.1from
didoudiaz:fix-utils
Mar 9, 2026
Merged

ekaf merged 1 commit into
ekaf:WNprolog-3.1from
didoudiaz:fix-utils

Conversation

@didoudiaz

Copy link
Copy Markdown
Contributor
  • ISO Prolog current_predicate/1 only fetchs user-defined predicates (not built-in predicates). Use instead predicate_property/2.
  • Use Prolog preprocessing directives (:-if/1 :-endif/1) instead of assert/1.

- ISO Prolog current_predicate only fetchs user-defined predicates (not built-in predicates). Use instead predicate_property/2.
- Use Prolog preprocessing directives (:-if/1 :-endif/1) instead of assert/1.
@ekaf
ekaf merged commit a2b4515 into ekaf:WNprolog-3.1 Mar 9, 2026
@ekaf

ekaf commented Mar 9, 2026

Copy link
Copy Markdown
Owner

Thanks @didoudiaz! PR #15 also addresses the same problem, but your solution is simpler and safer.

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

Successfully merging this pull request may close these issues.

2 participants