Re: OK what does ` mean - seriously seems to be not documented.

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
gimlet said...

I will spell it out.

Assume the text read in contains `\r\n` then the person writing this meant \r\n not {13,10}. You can say they are the same as 65 = 'A' but that doesn't make them the same. Just because in Euphoria 'A' and 65 are the same byte values doesn't make them the same values with the same meaning.

I'm very sorry gimlet, but you are simply wrong, because `\r\n` and "\r\n", and {13,10} actually are the same thing. They are the same thing because they are stored in RAM as exactly the same way. How you wish to interpret those two numbers is up to you.

A simple caveat here - `\r\n` is actually the same as "
r
n", not "\r\n". It's an easy mistake to make - I made it myself a few posts earlier. But for text files (not source), there is a version using the backquote that is the same as "\r\n" and {13,10}. As Derek says, these three things are all the same value.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu