lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Are all strings within Lua represented as lstrings?

Yes. All strings within Lua are byte arrays with an explicit length stored.
The length is a long, and so the strings can be really long :-)
See the type TString in lobject.h for details.

But doesn't the manual say so?

  Lua is eight-bit clean, and so strings may contain any 8-bit character,
  including embedded zeros.

--lhf