Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!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: Sun, 11 May 2025 17:59:31 -0700 Organization: A noiseless patient Spider Lines: 37 Message-ID: <86cycezlsc.fsf@linuxsc.com> References: <20250413072027.219@kylheku.com> <20250415153419.00004cf7@yahoo.com> <86h62078i8.fsf@linuxsc.com> <20250504180833.00000906@yahoo.com> <86plggzilx.fsf@linuxsc.com> <86ldr4yx0x.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 12 May 2025 02:59:31 +0200 (CEST) Injection-Info: dont-email.me; posting-host="74b4e5895be58ca73eb02e8f9ff401e1"; logging-data="765375"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+YwIruYTw1+/CjaHputpufhXOZ1jhyKb0=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:aB3+PUfouErL/lfOkyYqpAkfKgY= sha1:GQkObYE6vJPbHRDuZ1xutInIL+8= Bytes: 2760 Muttley@dastardlyhq.com writes: > On Sat, 10 May 2025 14:29:50 -0700 > Tim Rentsch gabbled: > >> 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? > > If I knew what the hell it was supposed to do I'd tell you. When you find out please post your suggested replacement.