Skip to content

Missing implementation for imported_from key of predicate_property/2 #2443

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

Open
hurufu opened this issue Jul 6, 2024 · 1 comment
Open

Comments

@hurufu
Copy link
Contributor

hurufu commented Jul 6, 2024

Scryer is missing imported_from key which is needed to maintain compatibility with SICStus Prolog
which recently became apparent in #2433 and was first requested in #977.

Unfortunately I can't assess how much is it needed and if it blocks any important feature.

hurufu added a commit to hurufu/scryer-prolog that referenced this issue Jul 19, 2024
  * predicate_property/2 removed, because it isn't working (mthom#2443)
  * meta_predicate instruction was split (mthom#2444)
  * Few changes were adopted from SWI variant[1], because it has
    similar handling of (:)/2 with predicates in modules.
  * Scryer specific changes

[1]: http://www.complang.tuwien.ac.at/ulrich/Prolog-inedit/swi/reif.pl
hurufu added a commit to hurufu/scryer-prolog that referenced this issue Aug 24, 2024
  * predicate_property/2 removed, because it isn't working (mthom#2443)
  * meta_predicate instruction was split (mthom#2444)
  * Few changes were adopted from SWI variant[1], because it has
    similar handling of (:)/2 with predicates in modules.
  * Scryer specific changes

[1]: http://www.complang.tuwien.ac.at/ulrich/Prolog-inedit/swi/reif.pl
hurufu added a commit to hurufu/scryer-prolog that referenced this issue Jan 2, 2025
  * predicate_property/2 removed, because it isn't working (mthom#2443)
  * meta_predicate instruction was split (mthom#2444)
  * Few changes were adopted from SWI variant[1], because it has
    similar handling of (:)/2 with predicates in modules.
  * Scryer specific changes

[1]: http://www.complang.tuwien.ac.at/ulrich/Prolog-inedit/swi/reif.pl
hurufu added a commit to hurufu/scryer-prolog that referenced this issue Jan 3, 2025
  * predicate_property/2 removed, because it isn't working (mthom#2443)
  * meta_predicate instruction was split (mthom#2444)
  * Few changes were adopted from SWI variant[1], because it has
    similar handling of (:)/2 with predicates in modules.
  * Scryer specific changes

[1]: http://www.complang.tuwien.ac.at/ulrich/Prolog-inedit/swi/reif.pl
hurufu added a commit to hurufu/scryer-prolog that referenced this issue Jan 5, 2025
  * predicate_property/2 removed, because it isn't working (mthom#2443)
  * meta_predicate instruction was split (mthom#2444)
  * Few changes were adopted from SWI variant[1], because it has
    similar handling of (:)/2 with predicates in modules.
  * Scryer specific changes

[1]: http://www.complang.tuwien.ac.at/ulrich/Prolog-inedit/swi/reif.pl
@rotu
Copy link

rotu commented Apr 11, 2025

I'd like to be able to understand what's going on at the prompt, so fleshing out predicate_property would be very useful!

For instance, swipl gives:

?- predicate_property(integer(_),P).
P = visible ;
P = built_in ;
P = foreign ;
P = static ;
P = imported_from(system) ;
P = nodebug ;
P = iso ;
P = defined ;
P = size(136).

Whereas scryer gives:

?- predicate_property(integer(_),P).
   P = built_in
;  false.

At the very least, the properties imported_from(...) and static are required.

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