comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Actual Ada style: type names and unary +
Date: 1998/01/18
Date: 1998-01-18T00:00:00+00:00	[thread overview]
Message-ID: <dewar.885126754@merv> (raw)
In-Reply-To: 34c177d8.17705498@SantaClara01.news.InterNex.Net


Tom Moran says

<<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.
>>


Your scanner is broken, here are some definitions of unary + from adainclude

[723]   function "+" (Str : VString_Var)  return Pattern;
[728]   function "+" (Str : VString_Func) return Pattern;
[733]   function "+" (P : Pattern_Var)    return Pattern;
[738]   function "+" (P : Boolean_Func)   return Pattern;

These are actually good examples of what I was talking about. From a
conceptual point of view a string variable should be able to be used as
a pattern, but we need a definite action to achieve this.





  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 Actual Ada style: type names and unary + Tom Moran
1998-01-18  0:00 ` Robert Dewar [this message]
1998-01-18  0:00 ` Tom Moran
1998-01-22  0:00   ` Mats Weber
replies disabled

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