Re: Infinitely expandable string.pack
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Infinitely expandable string.pack
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2018年3月28日 14:01:26 +0200
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?