Stephan Schiffel wrote: > Hi all, > > I think, I found another bug (tested with version 6.0#72). > The query p in the following program fails and prints "if" but neither "then" > nor "else". > > p :- q(a, 1). > > q(A, C) :- > equal([A], [B]), > writeln("if"), > (B=b, C=1 -> > writeln("then") > ; > writeln("else") > ). > > equal(A, A). Thanks for isolating this, Stefan. A rather trivial bug (missing clause) in the compiler caused the indexing to go wrong. Fixed in 6.0#75 which is ready for download. Cheers, JoachimReceived on Wed Feb 25 2009 - 00:02:13 CET
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST