Re: [eclipse-clp-users] Should it be the error?

From: Joachim Schimpf <joachim.schimpf_at_infotech.monash.edu.au>
Date: Thu, 15 Apr 2010 09:05:11 +1000
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.


-- Joachim
Received on Wed Apr 14 2010 - 23:05:13 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET