[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io.format
- From: Stephan Hennig <sh-list@...>
- Date: Wed, 19 Aug 2015 22:17:14 +0200
Am 19.08.2015 um 21:23 schrieb Parke:
> 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.
Didn't know that. Then that's my proposal!
Best regards,
Stephan Hennig