Escaping escapes (\\)

Posted by Faux on Mon 24 Jan 2005 10:58 AM — 3 posts, 17,292 views.

United Kingdom #0
Does anyone know why you have to escape the backslash in escape sequences?

eg.
AppendToNotepad("test","Fish!\\r\\n")

\n produces very weird syntax errors.. is MUSH pre-processing the sequences before sending them to Lua?
Australia Forum Administrator #1
In "send-to-script" it preprocesses them, so you have to quote them twice. In a script file it doesn't.
United Kingdom #2
Mmkay :)