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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8b756d9a0afb052a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!guardian.oit.duke.edu!nntp-out.monmouth.com!newspeer.monmouth.com!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Quick question about Ada code formatting. References: <43f74bc0$0$13593$9b4e6d93@newsread2.arcor-online.net> <43f87015$0$13609$9b4e6d93@newsread2.arcor-online.net> From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:YBpaixkb8/HIETgcVxpP6JOhZgI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 22 Feb 2006 17:15:36 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1140646544 66.159.65.1 (Wed, 22 Feb 2006 17:15:44 EST) NNTP-Posting-Date: Wed, 22 Feb 2006 17:15:44 EST Xref: g2news1.google.com comp.lang.ada:3075 Date: 2006-02-22T17:15:36-05:00 List-Id: Georg Bauhaus writes: > -gnaty could be improved, in my view, by separating layout > issues from issues that potentially affect how a piece of > code can be organized, and compiled. > > For example, on the one hand -gnaty marks > test.ada:2:04: (style) subprogram body has no previous spec > > and on the other hand, > test.ada:3:09: (style) space required > > These messages point to different issues, the first says something > about a program's organization. It refers to the fundamental > issue of separating spec and implementation. The second is largely > a typographic issue. It has no relevance for program organization. These are separate warnings; one is -gnatys, the other -gnatyt. I guess you would rather have -gnatzs, and -gnatyt? I don't see the point. The fact that the GNAT compiler groups them under -gnaty isn't particularly relevant, unless you happen to like the defaults. I always assume the defaults for any particular compiler switch are probably not what I want. -- -- Stephe