Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Small Device C Compiler 3.6.0 released Date: Fri, 17 Jun 2016 16:48:03 -0700 Organization: None to speak of Lines: 20 Message-ID: References: <0f562fb1-43aa-4213-85e6-97b5954eb162@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="19948"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19c6y8pmw4I9DtU152sSgc/" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:hfXh4EQDxFBjevUFW3teEnd+ZKY= sha1:4256MLIurUZDyavkP+jvdNSCO+k= Xref: csiph.com comp.lang.c:89474 supercat@casperkitty.com writes: > On Friday, June 17, 2016 at 6:09:28 PM UTC-5, Keith Thompson wrote: >> I disagree. Anyone who claims to know C has to be familiar with block >> scope. > > Indeed, although it may be worth noting that a popular web programming > language which has some syntax elements that resemble those of C (braces, > operators, silly octal notation, for loops, etc.) allows declarations > within blocks or "for" statements, and doesn't squawk at repeated > declarations, but in fact treats all declarations as though hoisted to > the top of the function in which they appear. Programmers who come from > that kind of background may find block scope "surprising". What language? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"