Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!spdcc!ima!haddock!karl From: karl@haddock.ima.isc.com (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Rules in placement of 'case'-labels Message-ID: <18574@haddock.ima.isc.com> Date: 18 Oct 90 21:27:40 GMT References: <808@tuura.UUCP> Reply-To: karl@ima.isc.com (Karl Heuer) Organization: Interactive Systems, Cambridge, MA 02138-5302 Lines: 10 In article <808@tuura.UUCP> risto@tuura.UUCP (Risto Lankinen) writes: >I've found that the following construct compiles without errors at least >in Microsoft C version 6.0 [example where case labels are misbalanced with >respect to braces]... It also made me wonder whether it is legal in C. It's legal in both Classic and ANSI C, though some compilers have been known to reject it. It's also highly unstructured; use it with the same level of caution as a `goto'. Karl W. Z. Heuer (karl@ima.isc.com or uunet!ima!karl), The Walking Lint