lua-users home
lua-l archive

Re: Ternary operator patch

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


	Hi Martin
    Since Lua is an applicative language both branches would be evaluated.
Whenever that becomes an issue i usually wrap the branches in quotes
and evaluate them in the function depending on the condition.
	But then you lost access to local values, don't you?
	Regards,
		Tomás

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