lua-users home
lua-l archive

Re: string.byte with empty string

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


> If you're just testing a single character at the start, comparing to
> string.sub(s,1,1) - or s:sub(1,1) - seems like a more obvious route to take.
>
> -Duncan
>
My original intention was to test the string without creating a new
string. Pretty trivial, I know, in the grand scheme of things :-)
Vaughan

AltStyle によって変換されたページ (->オリジナル) /