2010/4/15 Joachim Schimpf <joachim.schimpf_at_infotech.monash.edu.au>: > Wit Jakuczun wrote: >> Dear All, >> I have a file containing following code: >> >> pred1(1,1,108498). >> pred2(1,1,165133). >> pred1(2,1,120499). >> pred2(1,2,209949). >> >> When trying to compile it I get an error: >> ERROR: ala.pl:2: >> procedure clauses are not consecutive: pred1 / 3 >> ERROR: Stream 27:3: >> procedure clauses are not consecutive: pred2 / 3 > > It is basically to make life easier for the compiler, which > generates code for a predicate at a time, and therefore has > to wait until all clauses for the predicate have been seen. > > Use a :- discontiguous(pred1/3) declaration if you need it. > Thank you for the explanation! Best regards -- [ Wit Jakuczun http://www.linkedin.com/in/jakuczunwit ]Received on Thu Apr 15 2010 - 08:21:42 CEST
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET