Subject: Re: tell/1 , append/1 , open/4 ??????

From: Jan Wielemaker <[email-masked]>
Date: Wed, 22 Dec 1999 11:40:12 +0100

> Hi,
> in a course for foundation of programming, we have written a
> demonstration editor...
> So that the student can show their demonstrations, i have written a
> couple of clauses which copy in a file (trace.dem') the screen session : 
> %predicats de service
> 
> dw(X)
> 		:-
> 		tell('trace.dem'),
> 		write(X),
> 		tell(user),
> 		write(X).
> 
> dnl
> 		:-
> 		tell('trace.dem'),
> 		nl,
> 		tell(user),
> 		nl.
> 
> 'DR'(X) 
> 		:-
> 		read(X),
> 		tell('trace.dem') , 
> 		write(X) , nl , tell(user) , nl.
> 
> 
> This work well with simple Prolog (OPEN on macOS) and not
> with SWI 3.2.8
> what wrong in this picture ?
> help , help

You never do a told, nor a flush, so your output is somewhere
pending in the Prolog I/O buffers.  See help(told).

	Regards --- Jan