lua-users home
lua-l archive

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

On Wed, Aug 19, 2015 at 12:05 PM, Stephan Hennig <> wrote:
> Extending tostring() to automatically act like
> format() when multiple arguments are given won't work in the case of
>   tostring('%s', nil)
> unfortunately.

Why not?  Functions can know how many arguments they are passed, even
if the last argument is nil.