scryer-prolog: Missing standard predicates
With the current git version:
?- callable(foo).
caught: error(existence_error(procedure,callable/1),callable/1)
?- retractall(foo).
caught: error(existence_error(procedure,retractall/1),retractall/1)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- add missing standard predicates (#896) — committed to mthom/scryer-prolog by mthom 3 years ago
- add missing standard predicates (#896) — committed to mthom/scryer-prolog by mthom 3 years ago
- add missing standard predicates (#896) — committed to mthom/scryer-prolog by mthom 3 years ago
- fail when retracting undefined dynamic predicates (#918) — committed to mthom/scryer-prolog by mthom 3 years ago
- add read/2 and nl/1 (#896) — committed to mthom/scryer-prolog by mthom 3 years ago
- add read/2 and nl/1 (#896) — committed to mthom/scryer-prolog by mthom 3 years ago
I’ve added the missing predicates.
Indeed by using the following
tester.lgtdriver file with Scryer Prolog:we get with your code above:
Of course, the proper fix is to implement the missing
current_module/1predicate in Scryer Prolog.No. Please see https://github.com/mthom/scryer-prolog/discussions/966 for instructions on how to run Logtalk and
lgtunit.The
prolog_load_context/2is expected to succeed only during source file loading whilecurrent_module/1can be called at any time.