lua-users home
lua-l archive

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




The behaviour of the string library function 'strsub' seems non-standard
with respect to passing lengths greater than the actual string length. The
actual
behaviour is the return of an empty string, the expected behaviour is
truncation down to actual string length

example:
x="1234567890"

y=strsub(x,1,15)

y now equals "" instead of "1234567890"

maybe this could be changed? 

lyndon