[m-users.] How to get rid of warning message?

Volker Wysk <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
Hi!

I have this predicate in one module:

:- pred update_recorder_statistics(update_recorder::in, io::di, io::uo) 
is cc_multi.


It's meant to be passed as the second argument of this predicate in the same
module:

:- pred rec_continue(
    recorder::in,
    pred(rec, io, io) :: pred(in, di, uo) is cc_multi,
    io::di, io::uo
) is cc_multi.


I call it from a second module, like this:

rec_continue(Rec, update_recorder_statistics, !IO)


When I compile the first module, I get this warning:

fisactions.m:120: In `update_recorder_statistics'(in, di, uo):
fisactions.m:120:   warning: determinism declaration could be tighter.
fisactions.m:120:   Declared `cc_multi', inferred `det'.


How to get rid of that message? When I change "cc_multi" to "det", the
warning vanishes, but then I get this error in the second module:

fis.m:105: In clause for `main1(di, uo)':
fis.m:105:   in argument 2 of call to predicate `fisactions.rec_continue'/4:
fis.m:105:   mode error: variable `V_61' has instantiatedness
fis.m:105:   `/* unique */ (pred(in, di, uo) is det)',
fis.m:105:   expected instantiatedness was `(pred(in, di, uo) is cc_multi)'.



Cheers
Volker

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6QXGh82Ov3+2nrxp+K4ydFOsHoUFAmSthtoACgkQ+K4ydFOs
HoVvuA//To/4k5uxEqMtCipRvr3eQcyZZg5Nf9tR1aALuR5A37Felv+8iMpYFpXT
j8kImRR1e6lIaI3U4k6Wewm/B07JJnZ10VtaQ4Z7ymMv4aRG3TwEHzas3aPnrMtS
zm9wxEIAHCVcMzD8PjWg2YzxKBA0riyk+M2VFxpldM+OhK4j0wbTovEBWMGWhC4R
qirPbSb6shHx/b9RFwRhj11KzIbspxTg0kpdpBwR0moEHSnFSicCjM/+oJ+u9uCg
wEuesPxpgbCqHpeyU19K/BRy7vL2S9/R/G+G5iJFXkhLSgXNZo5ahhsfcBFjX2/Z
9yM5gD4C9hB6cr9Od1BHG7r1iULnkI55A9b50o++uvnrIDOjuTnz3bGxu1Gwbp6B
6Izep+gTOFH/vgnONQFYQzo0poEtGSTbToDkdT0A41W0oFZKQXDFPNgiHfYt1Ax4
bg8KKikIwo9z58xUh7gpU4k8t67fTn6N8qDjznRhu025TUJDMwg/Vc2IcXxvQ0XI
2cXC2T2PFjYE0gm/U/JhqikjExAyeIB1CsxKuZzpoUs7GmUJN7tkvxbe39NpRIIN
iXyYTCSVJ4cLtb+eMOaENS/VQ89tQW6tpU3wwY1bjtW20U9HdnlLD0J0wQhO4kH+
8nM0uHg0x7F3WGB67Ktb4f2v3yJRQ+rFNp3GY+YXVzjFODpZFcE=
=tCd6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.