GNU Prolog assert error
问题 I am new to Prolog, but I am stuck at this supposedly simple command. I have loaded a knowledge base with no errors, and whenever I try do assert (and even help ) I get the following message: uncaught exception: error(existence_error(procedure,assert/1),top_level/0) {2} What am I exactly missing? Appreciated. 回答1: Use assertz/1 or asserta/1 instead. GNU-Prolog does not provide assert/1 because only asserta/1 and assertz/1 are defined in the standard. Note that while asserta/1 always had one