我正在使用SWI Prolog 7.4.2并且我收到来自SWI prolog的关于条款不在一起的警告,即使我已经在文件顶部声明不连续,当包含文件时
所以如果test1.pro包含
std::unique_ptr
我查阅这个文件我没有抱怨,但是当我有test2.pro
...
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function refreshField() {
var c = null;
while (c == null) {
c = document.getElementById("textbox");
await sleep(10);
}
var lines = c.value.split("\n");
cells = new Cartesian();
for (var i in lines) {
var line = lines[i];
var pts = line.trimRight().split(" ").map(Number).filter(function(x) { return !isNaN(x); });
for (var j = 0; j + 1 < pts.length; j += 2) {
cells.add([pts[j], -pts[j + 1]]);
}
}
fieldDrawEvent = setTimeout(drawField, 10);
}
...
并加载test2.pro然后我抱怨p不在一起的条款