gprolog icon indicating copy to clipboard operation
gprolog copied to clipboard

ensure_loaded/1 wants suddently predicate indicator

Open Jean-Luc-Picard-2021 opened this issue 1 year ago • 1 comments

In Version 1.4.5 I get:

cijfdklibcdkbmbh

In Version 1.6.0 I get:

image

I don't see this behaviour documented:

When such a directive is encountered it is simply ignored. http://www.gprolog.org/manual/gprolog.html#sec59

Jean-Luc-Picard-2021 avatar Nov 10 '23 19:11 Jean-Luc-Picard-2021

The bug was introduced here 5 months ago when check_pi_list/2 was added?

handle_directive(ensure_loaded, DLst, _) :-
     !,
     check_pi_list(DLst, f),
     warn('ensure_loaded directive not supported - directive ignored', []).

Jean-Luc-Picard-2021 avatar Nov 10 '23 19:11 Jean-Luc-Picard-2021