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

Idiom for alerting user who attempts to use a non-enabled Rust feature #2766

Open
dcnorris opened this issue Jan 11, 2025 · 3 comments
Open

Comments

@dcnorris
Copy link

This comment by @adri326 dcnorris@157c35c#r151199171 points to a need (perhaps) for a uniform approach to alerting users when they attempt to load a library requiring a Rust feature that has not been enabled.

Does Scryer (or the ISO Standard) already establish an approach for this?

dcnorris referenced this issue in dcnorris/scryer-prolog Jan 11, 2025
@dcnorris
Copy link
Author

Closing as irrelevant; see #2765 (comment).

@triska
Copy link
Contributor

triska commented Jan 11, 2025

It still seems interesting even if it may not be needed for this concrete functionality! Other predicates are already affected.

@dcnorris dcnorris reopened this Jan 11, 2025
@hurufu
Copy link
Contributor

hurufu commented Jan 11, 2025

Some Prolog implementations (YAP, SWI) allow configuration of Prolog execution environment using set_prolog_flag/2, current_prolog_flag/2 and (non-portable) create_prolog_flag/3. It might be used to check whether special math functions are supported.

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

3 participants