lua-users home
lua-l archive

Re: Default parameter values

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


Paige DePol <lual@serfnet.org> wrote:
> So, essentially function(a=expr1, b, c=expr1) would just become
> syntactic sugar for the following:
> 
> function(a, b, c)
> a = a or expr1
> c = c or expr2
> end
Typo: function(a=expr1, b, c=expr2) 
Sorry for the extra post, just wanted to clarify my example! 
~Paige

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