Re: interactive comments

[email protected]
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
> How can I enter comments in an interactive session?  I get an error when I
> use
> the regular comment syntax:
> ?- %test
> |    .
> ERROR: Stream user_input:5:2747 Syntax error: Unexpected end of clause
> ?- /* test*/.
> ERROR: Stream user_input:12:2749 Syntax error: Unexpected end of clause
> ?- /*test*/
> |    .
> ERROR: Stream user_input:5:2752 Syntax error: Unexpected end of clause
> ?-
>
> This is within emacs.

The "regular comment syntax" works perfectly at top level.
The problem is not with the comment, it is that your entire
query is just ".", and that isn't legal in a file either.

?- true. % test

works fine.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.