The D Programming Language, labelled blocks
Ralf.Brown at B.GP.CS.CMU.EDU
Ralf.Brown at B.GP.CS.CMU.EDU
Mon Feb 29 23:06:01 AEST 1988
In article <24996 at cca.CCA.COM>, g-rh at cca.CCA.COM (Richard Harter) writes:
}As a side point, I like the suggestion that someone made that there be
}a fallthrough statement rather than automatic fallthrough.
So, you would like to have to write
switch(var)
{
case foo: fallthrough;
case bar: fallthrough;
case baz: fallthrough;
case mung: /* code to do something for all four cases */
}
?
Or add yet another special case (automatic fallthrough if and only if there
is no code between the two labels)?
--
{harvard,uunet,ucbvax}!b.gp.cs.cmu.edu!ralf -=-=- AT&T: (412)268-3053 (school)
ARPA: RALF at B.GP.CS.CMU.EDU |"Tolerance means excusing the mistakes others make.
FIDO: Ralf Brown at 129/31 | Tact means not noticing them." --Arthur Schnitzler
BITnet: RALF%B.GP.CS.CMU.EDU at CMUCCVMA -=-=- DISCLAIMER? I claimed something?
More information about the Comp.lang.c
mailing list