[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io.format (was: Reported to the Bloat Police: string.pack, .unpack and .packsize!)
- From: Parke <parke.nexus@...>
- Date: Wed, 19 Aug 2015 12:23:29 -0700
On Wed, Aug 19, 2015 at 12:05 PM, Stephan Hennig <sh-list@posteo.net> 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.
-Parke