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

From: Joachim Schimpf <joachim.schimpf_at_...44...>
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.3.0 : Wed Sep 25 2024 - 15:13:20 CEST