Re: Quick question about Ada code formatting.
- From: Stephen Leake <stephe_on_the_web@xxxxxxxxxxxx>
- Date: Wed, 22 Feb 2006 17:15:36 -0500
Georg Bauhaus <bauhaus@xxxxxxxxxxxxx> 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
.
- Follow-Ups:
- Re: Quick question about Ada code formatting.
- From: Georg Bauhaus
- Re: Quick question about Ada code formatting.
- References:
- Quick question about Ada code formatting.
- From: Peter C. Chapin
- Re: Quick question about Ada code formatting.
- From: Simon Wright
- Re: Quick question about Ada code formatting.
- From: Georg Bauhaus
- Re: Quick question about Ada code formatting.
- From: Simon Wright
- Re: Quick question about Ada code formatting.
- From: Georg Bauhaus
- Quick question about Ada code formatting.
- Prev by Date: Re: Ada95 skills test - Beta version(FREE)
- Next by Date: Re: Quick question about Ada code formatting.
- Previous by thread: Re: Quick question about Ada code formatting.
- Next by thread: Re: Quick question about Ada code formatting.
- Index(es):
Relevant Pages
|
|