From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cd0b8b65b7d84fb X-Google-Attributes: gid103376,public From: RC Subject: Re: Ada's Assembly Language Comments Date: 1997/07/08 Message-ID: #1/1 X-Deja-AN: 255979302 Distribution: world X-NNTP-Posting-Host: clanchy.demon.co.uk [158.152.48.37] References: <33BBD7AC.286F@link.com> <5pj11i$364@mulga.cs.mu.OZ.AU> Organization: Clanchy Newsgroups: comp.lang.ada Date: 1997-07-08T00:00:00+00:00 List-Id: >For further evidence that this happens even to experienced professional >programmers, here is an extract from /usr/include/sys/kern/queue.h >on the alpha-dec-osf3.2 system that I'm using. > > /* > * Macro: queue_init > * Function: > * Initialize the given queue. > * Header: > * void queue_init(q) > * queue_t q; /* MODIFIED*/ > */ > #define queue_init(q) ((q)->next = (q)->prev = q) > >The only reason that this code compiles at all is that it is usually >#ifdef'd out. True, but then it is 'C' isn't it? Hardly the worlds definitive standard for readable languages. Again, if code can be nested, why not comments? RC1