[m-rev.] for review: add a test coverage scenario

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Aug 22 21:26:41 AEST 2001


On 20-Aug-2001, Erwan Jahier <Erwan.Jahier at irisa.fr> wrote:
> 
> Ok thanks, but how do you say to the compiler that when calling via 
> solutions/2 a multidet predicate, you necessarily obtain a not empty list?

Change
:- mode solutions(pred(out) is multi, out) is det.

to
:- mode solutions(pred(out) is multi, out(non_empty_list)) is det.

in std_util.m.

Likewise for the function version.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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