lua-users home
lua-l archive

Re: Switch/Case with Fallthrough

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


On Wed, Nov 20, 2013 at 11:23 AM, Ulrich Schmidt <u.sch.zw@gmx.de> wrote:
> What happens if you assign a new value to <variable> inside a case block and
> dont use break? What value become checked in the next case test? the new
> assigned one or the local remembred one?
Nothing. Fallthroughs skip the case check.
/s/ Adam

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