Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Sat, 10 May 2025 14:29:50 -0700 Organization: A noiseless patient Spider Lines: 28 Message-ID: <86ldr4yx0x.fsf@linuxsc.com> References: <87a58mqt2o.fsf@nosuchdomain.example.com> <20250413072027.219@kylheku.com> <20250415153419.00004cf7@yahoo.com> <86h62078i8.fsf@linuxsc.com> <20250504180833.00000906@yahoo.com> <86plggzilx.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sat, 10 May 2025 23:29:59 +0200 (CEST) Injection-Info: dont-email.me; posting-host="53a0400bfdbb5d49833963bc2e4763c3"; logging-data="3939082"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+aEU2qrrCZcQnQ02+kt1+jTby68MLvFo8=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:mTdMUenRm1OZ6HbUpzM9UIyQWD0= sha1:dUiDgszQRiLom8JZP0ArSxocPrg= Xref: csiph.com comp.lang.c:393320 Muttley@dastardlyhq.com writes: > On Sat, 10 May 2025 06:43:38 -0700 > Tim Rentsch gabbled: > >> never necessary). Also it isn't easy to think of a good substitute >> word that might be given for this use of 'static', so maybe the > > Isn't it? > > Where "static" means local to a module the words > "local","module","limit" spring to mind which are far closer to > the intended meaning. Reusing "static" seems somewhat perverse > IMO. The use I'm talking about here may be illustrated as follows: double average( double values[ static 10 ] ){ double total = 0; for( int i = 0; i < 10; i++ ){ total += values[i]; } return total / 10; } What word would you suggest to be used in place of 'static' there?