[m-dev.] diff: io.nu.nl: io__write, io__read, io__get_output_line_num

Tyson Richard DOWD trd at students.cs.mu.oz.au
Sat Sep 27 12:44:48 AEST 1997


Fergus Henderson wrote:
> 
> library/io.nu.nl:
> 	Add Prolog versions of io__write, io__read, and
> 	io__get_output_line_number.
> 
> Index: io.nu.nl
> ===================================================================
> RCS file: /home/staff/zs/imp/mercury/library/io.nu.nl,v
> retrieving revision 1.55
> diff -u -u -r1.55 io.nu.nl
> --- io.nu.nl	1997/09/26 12:19:14	1.55
> +++ io.nu.nl	1997/09/26 12:23:34
> @@ -298,7 +298,10 @@
>  io__putback_byte(_Stream, _Char, IO, IO) :-
>  	error("io__putback_byte: binary IO is not implemented for Prolog.").
>  
> -io__read_anything(S, Result) -->
> +io__read_anything(S, R) -->
> +	io__read(S, R).
> +

Is there any reason this needs to be defined in here?
(Apart from the fact that it used to be defined in here).

It's just this is the same as the definition in io.m.

(same question applies to io__write_anything).

-- 
       Tyson Dowd           #          Another great idea from the 
                            #            people who brought you
      trd at .cs.mu.oz.au      #               Beer Milkshakes!
http://www.cs.mu.oz.au/~trd #	         Confidence --- Red Dwarf



More information about the developers mailing list