bug-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cyclic term error with quot_rem


From: Marc Nieper-Wißkirchen
Subject: Cyclic term error with quot_rem
Date: Wed, 29 Nov 2023 17:21:35 +0100

Hi Daniel,

Today, I have stumbled upon the following:

| ?- X #= quot_rem(3, 2, U).
X #= quot_rem(3, 2, U).

cannot display cyclic term for U
X = 1

yes
| ?-

I don't understand why U is not unified with 2.  Compare with the following, which works:

| ?- U #= 3 rem 2.
U #= 3 rem 2.

U = 1

yes
| ?-

I tested this with the latest release version (1.5.0) and the version packaged with Ubuntu (1.4.5).

Thanks,

Marc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]