comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Actual  Ada style: type names and unary +
Date: 1998/01/18
Date: 1998-01-18T00:00:00+00:00	[thread overview]
Message-ID: <34c177d8.17705498@SantaClara01.news.InterNex.Net> (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.





             reply	other threads:[~1998-01-18  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-18  0:00 Tom Moran [this message]
1998-01-18  0:00 ` Actual Ada style: type names and unary + Tom Moran
1998-01-22  0:00   ` Mats Weber
1998-01-18  0:00 ` Robert Dewar
replies disabled

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