Re: Back quotes for raw/literal strings

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

Tommy Carlier wrote:
> 
> Derek Parnell wrote:
> > 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 - \\.
> 
> In C#, you put an @ in front of your string for unescaping strings:
> a = "c:\\euphoria\\";
> b = @"c:\euphoria\";
> 

And in D, you have two ways ...

 a =  r"c:\euphoria\";
 b = `c:\euphoria\`;

But these are not Euphoria are they? 
-- 
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