]> Repositorios git - scryer-prolog.git/commit
ENHANCED: Delay toplevel output until after the goal succeeds.
authorMarkus Triska <[email protected]>
Sat, 18 Apr 2020 23:28:50 +0000 (01:28 +0200)
committerMarkus Triska <[email protected]>
Sat, 18 Apr 2020 23:34:03 +0000 (01:34 +0200)
commit075ca78dd2d733932292a27e1350f9433e469da5
tree8027ad6a618a7439d6a48c8f57598c4f1689c91a
parent9daf2904320da2d41d3005e8ed14a162ea657fd4
ENHANCED: Delay toplevel output until after the goal succeeds.

This is to accommodate goals that are used for their side-effects,
when we are interested in their output.

Examples:

    ?- portray_clause((a :- a)).
    a :-
            a.
       true
    ;  false.

    ?- format("hello~w~n", [!]).
    hello!
       true
    ;  false.
src/prolog/toplevel.pl