|
From: | Daniel Diaz |
Subject: | Re: Escapes in Backquoted Strings |
Date: | Fri, 25 Mar 2011 17:52:02 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 |
Hello Jan, sorry for the late reply... There is a flag to control the meaning of backquoted strings. By default it is an atom without interpreting escape sequences. But this can be changed (for more info see http://gprolog.org/manual/html_node/gprolog045.html#toc178). Here is an example: | ?- current_prolog_flag(back_quotes,X). X = atom_no_escape yes | ?- X=`\x61\`. X = '\\x61\\' yes | ?- set_prolog_flag(back_quotes,atom). yes | ?- X=`\x61\`. X = a Hope this helps Daniel Le 19/03/2011 18:32, Jan Burse a écrit :
-- Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. |
[Prev in Thread] | Current Thread | [Next in Thread] |