Hi
> > local a, b = type(some), 1
>
> Strange example because the return of type(some) will take up exactly 1 value, so b will always be 1.
>
> Mulret only works on the last expression in a list.
I doubt there are any declaration like:
local a, b = type(some)
But am not certain about:
local t = { type(some) }
Or:
f(type(some)) -- in the case that f accepts more than one value
Although I recognize this proposal (to let type return two values)
would introduce incompatibility, I don't think it would be a big
problem at all. Besides, I consider a boolean argument a very bad
choice, and also consider a second function (to work as almost the
same as the actual `type()`) as a waste. But this is a matter of
taste. Won't add much more to this discussion, though.
Regards,
Tomás