lua-users home
lua-l archive

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


2011/6/15 Fredrik Widlund <fredrik.widlund@qbrick.com>:
> Ok, thank you! So in a list of expr a vararg is evaluated to the first element of the vararg unless last in the list.
>
> May I ask why this is?
>
> Basically I wanted a double recursive function return an appended list of expressions, but I ended up storing the expr in tables instead and explicitly appending them.
>

Maybe this is a stupid idea, but what about having a way to mark a
closure as not adjustable? Default would be to adjust with the current
rules, but if you don't want this, and you know what you are doing,
then you can :-).

-- 
Benoit.