Re: Back quotes for raw/literal strings

new topic     » goto parent     » topic index » view thread      » older message » newer message

Terry Constant wrote:
> 
> I cannot find where Euphoria has raw/literal/non-escaped strings.
> If I missed the info, could someone point me in the correct direction?
> If not, what is the chance of having back quotes, "`", delimit
> raw/non-escaped strings.
> 
> For example, `c:\Program Files\myfile.txt` would be 
> the same as  "c:\\Program Files\\myfile.txt" or
>              `He said, "Hello" to her.` would be 
> the same as  "He said, \"Hello\" to her."
> 
> Again, if this topic has been discussed or is documented, could someone
> point me to it?

I'm sorry to report that Euphoria does not have such a facility. I know
some languages do have a way of representing literal strings that do
not need 'escaped' characters, but Euphoria only has one string literal
syntax. All string literals must be enclosed in double-quote characters,
must not cross over line boundries, and any embedded double-quotes
and newline characters must be 'escaped' - \" and \n respectively. Thus
the back-slash character must also be escaped - \\.

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu