Re: :- at the beginning of the lines in the consulted file.



Cesar Rabak wrote:
newser.bbs@xxxxxxxxxxxxxxxxx escreveu:

In the Forth and Lisp , if a file is loaded( ie consulted in prolog),
the lines in the loaded file will be execute without commands
keyed-in in the toplevel. In prolog , if the prgrammer wants to
make the same effect , :- at the beginning of the lines is
necessary .

This message is an inconvenience for everybody:

Cesar is right.
.



Relevant Pages

  • Re: :- at the beginning of the lines in the consulted file.
    ... keyed-in in the toplevel. ... if the prgrammer wants to ... You posted in a Prolog group, so it doesn't add any information for prologuers, and Lisp and Forth aren't topic here. ...
    (comp.lang.prolog)
  • Re: Prolog doesnt give multiple solutions to my goal.
    ... "ground toplevel queries have only one answer" ... Inference Engine, that is, absent various non-logical features of Prolog ... and one usually likes very much Prolog (whether in toplevel ... language, it makes no sense to do so for the subgoals in any computation, ...
    (comp.lang.prolog)
  • Re: It seems that I found prolog in prolog
    ... fragments of Prolog programs ... You go from to using a Prolog parser. ... You go from to using the write-family of predicates. ... toplevel. ...
    (comp.lang.prolog)
  • :- at the beginning of the lines in the consulted file.
    ... In the Forth and Lisp, if a file is loaded(ie consulted in prolog), ... the lines in the loaded file will be execute without commands ... keyed-in in the toplevel. ...
    (comp.lang.prolog)