comp.lang.ada
 help / color / mirror / Atom feed
* Actual  Ada style: type names and unary +
@ 1998-01-18  0:00 Tom Moran
  1998-01-18  0:00 ` Robert Dewar
  1998-01-18  0:00 ` Tom Moran
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Moran @ 1998-01-18  0:00 UTC (permalink / raw)



To get an idea of the style of Ada "as she is spoke", I ran a simple
scanner on some of the "software components" source files in the
November 1997 Walnut Creek Ada CD (disk 1) looking for the unary +
operator and type/subtype identifiers ending in _t, _type, or 's'
(but excluding "access", "address", "class", and "status").  It
found no instances of unary plus or "_t", nearly 50% use of _type,
and about 20% use of (possible) plurals.  As a check, I scanned the
adainclude directory of Gnat 3.10p1-nt (551 files) and found 3
instances of unary + (all numeric), and almost 1% use of _t.

192 files in 7 .zips in 11/97 Walnut Creek Ada CD 1, ADA\SWCOMPS,
selected randomly as the largish zips
   0 unary +
 377 type declarations
 176 _type (in 44/192 files)
   0 _t
  72 possible plurals as type names (in 25/192 files)

The scanner is available if someone would like to scan a larger or
more diverse body of code.  No warranties, of course.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-01-22  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-18  0:00 Actual Ada style: type names and unary + Tom Moran
1998-01-18  0:00 ` Robert Dewar
1998-01-18  0:00 ` Tom Moran
1998-01-22  0:00   ` Mats Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox