Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
gprolog 中的最小/最大整数是多少?有没有办法在不使用“幻数”的情况下引用这些数字?
我认为这些应该有效:
current_prolog_flag(bounded, X). current_prolog_flag(min_integer, Y). current_prolog_flag(max_integer, Z).
bounded告诉您您的实现是否支持任意大整数;如果为假,min_integer/max_integer调用将失败。
bounded
min_integer
max_integer