lua-users home
lua-l archive

Re: Ternary operator patch

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


On Fri, Sep 10, 2010 at 7:59 AM, Henk Boom <henk@henk.ca> wrote:
> This doesn't work when it's possible for good() to return false or nil
This is true, and I've been bitten by this one before.
a = x == y and (good() or true) or bad()
;)

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