Re: Switch/Case with Fallthrough
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Switch/Case with Fallthrough
- From: Coda Highland <chighland@...>
- Date: 2013年11月20日 11:27:18 -0800
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