0

I'm trying to transfer a file written for SICStus Prolog into TuProlog.

I get the error message:

WARNING: The predicate =/2 is unknown.

(The code works in SICStus, but not in TuProlog).

What should I use instead of =/2 for TuProlog? What is the difference in syntax?

manlio
  • 18,345
  • 14
  • 76
  • 126
hassapikos
  • 59
  • 1
  • 2
  • 10
  • 1
    The standard `=/2` predicate is supported by tuProlog. What's the context for that error message? – Paulo Moura May 12 '15 at 10:28
  • I get the warning message in the 'Debug information' of the tuProlog IDE. – hassapikos May 12 '15 at 14:18
  • No information on the **calling** context for the `=/2` predicate? – Paulo Moura May 12 '15 at 14:58
  • I wrote a program to find the best move in a game of chess - the predicate 'best_move' should always succeed (and it does in SICStus), but a lot of the time it fails in tuProlog. Whenever it fails, I get the error message ' =/2 predicate is unknown'. I don't know how to determine which line of code is causing the problem. Thanks for your help. – hassapikos May 12 '15 at 15:30
  • TuProlog being not much ISO conforming, simply add the fact `=(X,X).` – false May 12 '15 at 15:45

0 Answers0