Barton C Massey wrote:
In message <8f5d905c0904091948y526182edm16cb2bf4d5a42...@mail.gmail.com> you 
wrote:
It turns out wrapping that last "case" in curly-braces makes everything
happy and compileable...  Not that this is comfortable...


It's a less-than-good feature of C.  Case labels are labels,
and thus must label a statement.

For what it's worth, in object-oriented land (I mainly do Java these days) case statements are also (supposed to be) atomic operations. Same idea, slightly different syntax.
--
Richard Johnson

_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to