<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
What can be wrong with the following program? <br><br>At compilation I get the following error<br><br><br>$ mmc -E --make test1higherorder<br>Making Mercury/cs/test1higherorder.c<br>Uncaught Mercury exception:<br>Software Error: polymorphism.m: Sorry, not implemented: determinism inference for higher order predicate terms.<br>Stack dump not available in this grade.<br>** Error making `Mercury/cs/test1higherorder.c'.<br><br><br>% Mercury Compiler, version rotd-2007-08-30, configured for i686-pc-linux-gnu<br>%%%%%%%%%%%%%%%<br>:- module test1higherorder.<br>:- interface.<br>:- import_module io.<br>:- pred main(io::di, io::uo) is det.<br>:- implementation.<br>:- import_module list.<br>:- import_module int.<br><br>main(!IO) :-<br>    foldr(plus,[1,2,3,4],0,S),<br>    io.write(S,!IO)    .<br><br>:- pred plus(int,int,int).<br>:- mode plus(in,in,out).<br><br>plus(A,B,C):-<br>    C=int.plus(A,B).<br><br /><hr />Find thousands of jobs online now! <a href='http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fad%2Eau%2Edoubleclick%2Enet%2Fclk%3B114014868%3B17770752%3Bi%3Fhttp%3A%2F%2Fwww%2Ejobsjobsjobs%2Ecom%2Eau&_t=762242361&_r=Hotmail_email_tagline_July07&_m=EXT
' target='_new'>NEW jobsjobsjobs.com.au. </a></body>
</html>