Barton C Massey wrote:
In message <> you 
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

Reply via email to