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

From: Wit Jakuczun <wit.jakuczun_at_gmail.com>
Date: Wed, 14 Apr 2010 20:05:30 +0200
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

When I reorganize facts according to error message. The code is:
pred1(1,1,108498).
pred1(2,1,120499).
pred2(1,2,209949).
pred2(1,1,165133).

everything is ok.


Could any one explain why  I get error (I would understand warning)
when predicates are not consecutive?

Best regards
-- 
[ Wit Jakuczun  http://www.linkedin.com/in/jakuczunwit  ]
Received on Wed Apr 14 2010 - 18:05:38 CEST

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