lua-users home
lua-l archive

Re: io.format

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


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

AltStyle によって変換されたページ (->オリジナル) /