lua-users home
lua-l archive

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


On 03/28/2018 02:12 PM, Soni "They/Them" L. wrote:
> 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)?
> 
> thanks.

I'd prefer this extension. (And same extension for "string.format".)

-- Martin