(Un)expected syntax error

Abramo Bagnara <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Organization BUGSENG srl
Message-ID <[email protected]>
Is the following behavior expected?

?- writeln('volatile').
volatile
true.

?- writeln('volatile' : a).
ERROR: Syntax error: Operator expected
ERROR: writeln('volatile' :
ERROR: ** here **
ERROR: a) .
?- writeln(('volatile' : a)).
ERROR: Syntax error: Operator expected
ERROR: writeln(('volatile' :
ERROR: ** here **
ERROR: a)) .

-- 
Abramo Bagnara

BUGSENG srl - http://bugseng.com
mailto:[email protected]
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.