lua-users home
lua-l archive

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


2018-03-28 13:12 GMT+02:00 Soni "They/Them" L. <fakedme@gmail.com>:
> string.pack currently doesn't accept anything past the end of the format
> string, it just ignores everything.
>
> what if it didn't? what if, at the end of the format string, it read another
> format string?
>
> what if string.pack("I", 32, "I", 64) was the same as string.pack("II", 32,
> 64)?

Related: what if string.packsize(fmt) returned two values, the second
one being the number of arguments that 'fmt' demands?