lua-users home
lua-l archive

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


On 18.01.2023 at 21:13 Roberto Ierusalimschy wrote:

> It is a simple and secure way to limit the maximum size of formatted
> items, to avoid buffer overflow.

I see, makes sense.

>  (Do you really need larger values?)

Personally not but I think for reasons of portability it would be
nice if Lua's string.format() behaved the same as the C specification
(where possible). As I said, I noticed this because some code I was
porting from C used more than two digits and I was surprised that it
failed with Lua. 

-- 
Best regards,
 Andreas Falkenhahn                            mailto:andreas@falkenhahn.com