lua-users home
lua-l archive

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


On 27/07/2022 14:16, Lars Müller wrote:
> Agreed on the foot-shooting ability. Your example is somewhat wrong
> though: You wouldn't have to list them all. You could still truncate to
> the first return value by surrounding the expression in parenthesis:
> 
> local fa, ga, gb = (f()), g()

Ah thank you for the correction! That's funky looking syntax :)