Deutsch English Français Italiano |
<86mshals66.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch <tr.17687@z991.linuxsc.com> Newsgroups: comp.lang.c Subject: Re: question about linker Date: Wed, 04 Dec 2024 19:33:53 -0800 Organization: A noiseless patient Spider Lines: 23 Message-ID: <86mshals66.fsf@linuxsc.com> References: <vi54e9$3ie0o$1@dont-email.me> <vi6sb1$148h7$1@paganini.bofh.team> <vi6uaj$3ve13$2@dont-email.me> <87plmfu2ub.fsf@nosuchdomain.example.com> <vi9jk4$gse4$1@dont-email.me> <vi9kng$gn4c$1@dont-email.me> <87frnbt9jn.fsf@nosuchdomain.example.com> <viaqh0$nm7q$1@dont-email.me> <877c8nt255.fsf@nosuchdomain.example.com> <viasv4$nm7q$2@dont-email.me> <vibr1l$vvjf$1@dont-email.me> <vic73f$1205f$1@dont-email.me> <20241129142810.00007920@yahoo.com> <vicfra$13nl4$1@dont-email.me> <20241129161517.000010b8@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 05 Dec 2024 04:34:04 +0100 (CET) Injection-Info: dont-email.me; posting-host="8a263e9b473304506e7d265d71d931f0"; logging-data="1461718"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8NsmK7B/35Y0plhcxovud4AkB6Rfdk6E=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:tI2OoDGf7c2+ud9LEuPSLnrLVns= sha1:zdu+aLfB8MYm6qaivViIp44Ra1Y= Bytes: 2428 Michael S <already5chosen@yahoo.com> writes: > On Fri, 29 Nov 2024 13:33:30 +0000 > Bart <bc@freeuk.com> wrote: > >> [C syntax] allows a list of variable names in the same declaration >> to each have their own modifiers, so each can be a totally >> different type > > Not in every context. It is not allowed in function prototypes. > Even when it is allowed, it's never necessary and avoided by > majority of experienced programmers. > I'd guess, TimR will disagree with the last part. I might say I mostly agree. Most of the declarations I write have only one declarator. I don't have an absolute rule against declaring multiple names in a single declaration; depending on what is being declared and on other circumstances it might look reasonable. Generally I find rules that admit no exceptions under any circumstances to be unnecessarily rigid. These days it's the fashion to treat programmers like they're dumb and incapable of exercising good independent judgment. I have a different view.