[mercury-users] Explicit type qualification problems

Fergus Henderson fjh at cs.mu.OZ.AU
Tue May 15 02:25:50 AEST 2001

On 14-May-2001, Ondrej Bojar <oboj7042 at ss1000.ms.mff.cuni.cz> wrote:
>   I'm trying to use the `with_type` explicit type qualification, but I get
> error: undefined predicate `with_type/2'.

"X `with_type` T" is an expression, not a goal.

So instead of e.g.

	p(X) :-
		X `with_type` T1,
		Y `with_type` T2,

you should write

	p(X `with_type` T1) :-
		q(Y `with_type` T2),

Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe

More information about the users mailing list