lua-users home
lua-l archive

Re: io.format (was: Reported to the Bloat Police: string.pack, .unpack and .packsize!)

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


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

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