[m-rev.] diff: new disabled test case invalid/bad_detism.m

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Dec 23 18:10:59 AEDT 2003


On 23-Dec-2003, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> +++ bad_detism.m	21 Dec 2003 23:39:47 -0000
> +% There should be no determinism clause on a pred declaration without modes.
> +
> +:- pred p(string) is det.
> +:- mode p(out) is det.

The comment here is not quite right; it's OK to have a determinism
clause on a pred declaration without modes so long as the pred declaration
doesn't have any arguments either, e.g.

	:- pred p is det.

-- 
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