[mercury-users] Testing with dependent lists?
Ralph Becket
rafe at csse.unimelb.edu.au
Mon Feb 12 13:09:33 AEDT 2007
doug.auclair at logicaltypes.com, Sunday, 11 February 2007:
>
> So, is there a way in Mercury to declare to the compiler the inst of
> one object based on the inst of another in a clause head?
Not to do what you want here. The subtyping aspect of insts is
occasionally useful, but it isn't a magic bullet. Sometimes the
easiest (and best) thing to do is just add a couple of extra clauses or
use an if-then-else.
-- Ralph
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list