[m-dev.] Making goals in negated contexts with inst any args impure

Ralph Becket rafe at cs.mu.OZ.AU
Thu Oct 13 11:18:15 AEST 2005

Julien Fischer, Wednesday, 12 October 2005:
> Couldn't you just do this during mode checking?

Okay, I've thought about this a little more: we can leave the current
pass ordering as is, but weaken purity.m so that it won't report a
purity error if it sees an call to a pure predicate in a negated
context.  I will add a check in modecheck_call.m to verify that
calls in negated contexts
- with inst any arguments are properly marked as impure
- are otherwise marked as impure iff the called pred is impure.

-- Ralph
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au

More information about the developers mailing list