JASS can't do that -or- The quine challenge

Builder Bob

Live free or don't
Reaction score
249
I don't get what those escape characters are doing. (the \'s)

Let's say you want to print " to the screen. How would you do that when " marks the beginning and the end of a string. Where is the beginning and the end of the string """ ?

The escape character \ tells us that the following character in the string should be interpreted as a printable character in the string, no matter which character it is.

The string "\"" will therefor be printed as "
The escape character is also required to print the escape character itself.
"\\" is printed as \

Edit: Actually the escape character only tells us that the following character should have a different meaning than the usual one.
Example: \n is the same as new line. The character n is given a new meaning when combined with the escape character.
 

tom_mai78101

The Helper Connoisseur / Ex-MineCraft Host
Staff member
Reaction score
1,694
Then what does this mean: |

Strilanc said:
If jass had a string replace function, it would be so much easier.

I think we can, by adding a function code that does that in the comman.ai, I think.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top