lua-users home
lua-l archive

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


> Btw, I recently searched for a way to access bytes in a string, and
> found string.byte(), but I wondered, why does [] not apply to strings?

A string is a value, not a table. Square brackets are meant to index
elements in a table.