prolog icon indicating copy to clipboard operation
prolog copied to clipboard

Is include/1 or ensure_loaded/1 supported?

Open Jean-Luc-Picard-2021 opened this issue 6 months ago • 2 comments

I currently get:

$ ~/go/bin/1pl -v
Top level for ichiban/prolog v1.2.1
This is for testing purposes only!
See https://github.com/ichiban/prolog for more details.
Type Ctrl-C or 'halt.' to exit.

?- include('foo.p').
2024/08/10 21:11:48 error(existence_error(procedure,include/1),root)

?- ensure_loaded('foo.p').
2024/08/10 21:12:05 error(existence_error(procedure,ensure_loaded/1),root)

Both built-ins are defined in the ISO core standard.

How would a Prolog text have another Prolog text included or ensure_loaded?

Jean-Luc-Picard-2021 avatar Aug 10 '24 19:08 Jean-Luc-Picard-2021