scryer-prolog icon indicating copy to clipboard operation
scryer-prolog copied to clipboard

rebis-dev: Unexpected domain error

Open triska opened this issue 1 year ago • 0 comments

With the following program:

:- use_module(library(format)).

p(ID, N) :-
        format("~w (~w)... ", [ID,N]).

I get:

?- p(3, 5).
   error(domain_error(write_option,'A'=3),write_term_to_chars/3), unexpected.

It works as expected in master:

?- p(3, 5).
3 (5)...    true.

triska avatar Oct 01 '24 16:10 triska