【发布时间】:2014-06-15 13:24:29
【问题描述】:
这可能与a comp.lang.prolog-discussion有关。
我在使用带有 SICStus SPIDER 的 Eclipse 时收到了几个类似的警告:
The plain meta argument (Y) is passed as a closure argument
(with 0 suppressed arguments) to the callee.
这是一个代码示例:
% Prologs set_of is baroque %% RS-140614 130sec runtime vs. 28sec runtime
:- meta_predicate set_of(+,:,+) .
set_of(X,Y,Z):- %%
setof(X,Y^Y,Z),!; %% Trick to avoid alternatives
Z=[]. %% What is wrong with empty sets ?
如何消除 SPIDER 警告? 我对简单地抑制警告并不感兴趣。 我正在使用最新版本的 SPIDER IDE (0.0.51) 和 SICStus Prolog 4.2.3。
【问题讨论】:
标签: eclipse prolog sicstus-prolog prolog-setof meta-predicate