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

From: Wit Jakuczun <wit.jakuczun_at_...6...>
Date: Thu, 15 Apr 2010 10:21:29 +0200
2010/4/15 Joachim Schimpf <joachim.schimpf@...44...>:
> 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 : Mon Jul 09 2018 - 02:05:29 CEST