| Deutsch English Français Italiano |
|
<86cycezlsc.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
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 <tr.17687@z991.linuxsc.com>
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: <vspbjh$8dvd$1@dont-email.me> <vtc7mp$2q5hr$1@dont-email.me> <vtcqf6$3j95s$1@dont-email.me> <vtdh4q$b3kt$1@dont-email.me> <vtf7fe$1qtpg$1@dont-email.me> <vtgfuf$31ug1$1@dont-email.me> <20250413072027.219@kylheku.com> <vtgpce$39229$1@dont-email.me> <vti2ki$g23v$1@dont-email.me> <vtin99$vu24$1@dont-email.me> <vtiuf0$18au8$1@dont-email.me> <vtj97r$1i3v3$1@dont-email.me> <vtl166$36p6b$1@dont-email.me> <vtlcg0$3f46a$2@dont-email.me> <20250415153419.00004cf7@yahoo.com> <86h62078i8.fsf@linuxsc.com> <20250504180833.00000906@yahoo.com> <86plggzilx.fsf@linuxsc.com> <vvnsvt$3k1mu$1@dont-email.me> <86ldr4yx0x.fsf@linuxsc.com> <vvpmm2$3dhl$1@dont-email.me>
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 <tr.17687@z991.linuxsc.com> gabbled:
>
>> Muttley@dastardlyhq.com writes:
>>
>>> On Sat, 10 May 2025 06:43:38 -0700
>>> Tim Rentsch <tr.17687@z991.linuxsc.com> 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.