Each character has an internal numeric representation, such as \ 97 for 'a'. The character code \ 0 does not represent any visible character, but is used as a terminator in C and other programming languages.
The manual wants to make it clear that "\ 0" is not a terminator in Lua. It also means that you can load arbitrary bytes into a string (image, audio, video, native code, etc.), and you don’t risk truncating it with the first '\ 0' some library function (which can happen in C if you use string related functions).
marcus
source share