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

attribute_goals/3 existence error while following "Attributed Variables" chapter #35

Open
jasonhemann opened this issue Apr 17, 2022 · 2 comments

Comments

@jasonhemann
Copy link

Following the "Attributed Variables" chapter https://www.metalevel.at/prolog/attributedvariables, in a fresh REPL using scryer-prolog version "v0.9.0-63-gc490d818", I constructed a file attrmod.pl, and then attempted to use it at toplevel.

%% File attrmod.pl
:- module(attrmod, []).
:- use_module(library(atts)).
:- attribute a/1.

?- consult('/path/to/attrmod.pl').
   true.
?- attrmod:put_atts(X, a(test)).
caught: error(existence_error(procedure,attribute_goals/3),attribute_goals/3)

I did not expect this behavior. Perhaps a default implementation of attribute_goals in the suggested attrmod.pl file?

@triska
Copy link
Owner

triska commented Apr 17, 2022

Thank you, I have filed this as an issue for Scryer Prolog: mthom/scryer-prolog#1432.

@triska
Copy link
Owner

triska commented Apr 25, 2022

This is now corrected in Scryer Prolog via mthom/scryer-prolog@ed89c43!

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