Inconsistent handling of invalid escape sequences

"'Martin Eden' via lua-l" <[email protected]>
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
Invalid characters after backslash are accepted in Lua command-line 
interpreter but rejected when compiling code:

   Lua 5.5.1  Copyright (C) 1994-2026 Lua.org, PUC-Rio
   > print('\\c')
   \c
   > load('print("\\c")')
   nil [string "print("\c")"]:1: invalid escape sequence near '"\c'

Is there official policy for them?

-- Martin

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/063f43a8-5001-47dc-8337-d749193cb73a%40disroot.org.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.