[m-dev.] trivial diff: add io__gc_init for Prolog
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Jul 27 23:49:39 AEST 1998
On 27-Jul-1998, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
>
> library/io.nu.nl:
> Add an implementation of io__gc_init for Prolog.
That's not the correct fix. There's already an implementation
of io__gc_init in io.nu.nl, as shown in your diff:
> +:- pred io__gc_init(type_info, type_info, io__state, io__state).
> +:- mode io__gc_init(in, in, di, uo) is det.
> +
> +io__gc_init(_, _) --> [].
> +
> :- pred io__gc_init(io__state, io__state).
> :- mode io__gc_init(di, uo) is det.
> io__gc_init --> [].
The correct fix is to just change the arity of the existing implementation
(or equivalently, to add the new definition and delete the old one).
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
More information about the developers
mailing list