Re: Suggestion: 'string.unpack("z", "")' should fail
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Suggestion: 'string.unpack("z", "")' should fail
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2019年7月10日 09:34:49 -0300
> I'd like to suggest the following patch so that 'string.unpack("z", "abc")'
> raises an error instead of returning as if it "consumed" more bytes than
> are present in the string.
Lua 5.4 already does that.
-- Roberto