[m-rev.] Re: for review: default modes for higher-order func insts

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Oct 12 12:29:30 AEST 2001


On 11-Oct-2001, David Overton <dmo at cs.mu.OZ.AU> wrote:
> +++ tests/hard_coded/ho_func_default_inst.m
> @@ -27,11 +27,10 @@
>  
>  :- func map = map(int, t).
>  
> -map = (((map__init
> +map = ((map__init
>  		^ elem(1) := foo1)
>  		^ elem(2) := foo2)
> -		^ elem(3) := foo3)
> -		^ elem(4) := foo4.
> +		^ elem(3) := foo3.
>  
>  :- pred write_func(t, io, io) is det.
>  :- mode write_func(func(in) = out is det, di, uo) is det.

It would be a good idea to move the invalid code that you
deleted here to a new test case in tests/invalid,
and put an XXX comment in tests/invalid/Mmakefile
saying that we don't pass it yet (and explaining why).

That way, this test won't get forgotten.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  | "... it seems to me that 15 years of
The University of Melbourne         | email is plenty for one lifetime."
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- Prof. Donald E. Knuth
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list