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

Document positioning of safe_primitive defs #47

Open
ridgeworks opened this issue Feb 26, 2019 · 0 comments
Open

Document positioning of safe_primitive defs #47

ridgeworks opened this issue Feb 26, 2019 · 0 comments

Comments

@ridgeworks
Copy link
Contributor

From [https://groups.google.com/forum/#!msg/swi-prolog/uJq7xF_5FV0/y5a1sesnBwAJ]:

> I have tried including a 'make' goal by declaring it safe with the 
> sandbox predicates, but I get an error 'no permission to declare 
> safe_goal 'door:my_make(_G273)' 

This should in theory work, but the declaration must be *after* the 
predicate declaration as it is checked not to be obviously wrong. In 
particular it does not allow defining meta-predicates as safe primitives 
as that would make everything safe. 

        Cheers --- Jan 

This ordering dependency should be in the documentation somewhere.

Apologies if I missed it, but I couldn't find it in either pengines or sandbox.

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

1 participant