« Return to Thread: Problem writing string quotes

Re: Problem writing string quotes

by Peter Van Weert :: Rate this Message:

Reply to Author | View in Thread

Tony Drapkin wrote:
> I don't know how to to force SWI Prolog to write string quotes,
> although t is possible to do this in LPA MacProlog using the  ~ symbol.

In SWI (and most programming languages I know) the \ character is used
to escape characters. So:

?- write('\'').
'
true.

Cheers,
Peter



Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

[Peter_VanWeert.vcf]

begin:vcard
fn:Peter Van Weert
n:Van Weert;Peter
org:K.U.Leuven;Computer Science
adr:;;Celestijnenlaan 200A;Heverlee (Leuven);;3001;Belgium
tel;work:003216327665
url:http://www.cs.kuleuven.be/~petervw/
version:2.1
end:vcard


 « Return to Thread: Problem writing string quotes