From liraola@opera.dia.fi.upm.es  Fri Feb 11 12:14:08 2000
Received: from goofy.fi.upm.es (goofy.fi.upm.es [138.100.8.23])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA01384
	for <prolog@swi.psy.uva.nl>; Fri, 11 Feb 2000 12:14:07 +0100 (MET)
Received: from conversion.relay.fi.upm.es by relay.fi.upm.es
 (PMDF V5.2-32 #39034) id <01JLS4GKPFQ800080J@relay.fi.upm.es> for
 prolog@swi.psy.uva.nl; Fri, 11 Feb 2000 12:13:28 MET
Received: from opera.dia.fi.upm.es (opera.dia.fi.upm.es [138.100.11.43])
 by relay.fi.upm.es (PMDF V5.2-32 #39034)
 with ESMTP id <01JLS4GK56R80008CS@relay.fi.upm.es> for prolog@swi.psy.uva.nl;
 Fri, 11 Feb 2000 12:13:27 +0100 (MET)
Received: from localhost by opera.dia.fi.upm.es (8.8.4/FI-4.1) Fri,
 11 Feb 2000 12:12:24 GMT
Date: Fri, 11 Feb 2000 12:12:22 +0000 (WET DST)
From: Luis Iraola Moreno <liraola@opera.dia.fi.upm.es>
Subject: Escape sequences
In-reply-to: <200002101433.PAA03482@gollem.swi.psy.uva.nl>
X-Sender: liraola@opera
To: prolog@swi.psy.uva.nl
Message-id: <Pine.SOL.3.95.1000211120217.3737D-100000@opera>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII


Hello _,

I have found this small asymetry in the use of escape sequences in atoms
and strings.

Within an atom, a single quotation mark can generate a escape sequence:

?- concat(a,'''',X).

X = 'a\''

But a double quotation mark within a string seems to be "un-escapable":

?- string_concat("a","""",X).

X = "a"""

Am I missing something? I know escape sequences are a new (and nice)
feature of 3.3, so maybe there is a built-in way of producing escape
sequences with double quotes in strings.

Thanks in advance,

Luis Iraola.

