comp.lang.ada
 help / color / mirror / Atom feed
* Naming conventions
@ 1987-11-13 23:10 Michael.Rissman
  0 siblings, 0 replies; 8+ messages in thread
From: Michael.Rissman @ 1987-11-13 23:10 UTC (permalink / raw)


I'm looking for standards or conventions covering naming of Ada entities
from packages to data types.  Send or post pointers, including contacts.
Thanks, Michael

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Naming conventions
@ 2002-07-25  1:48 Ryan Tarpine
  2002-07-25  2:51 ` Ted Dennison
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Ryan Tarpine @ 2002-07-25  1:48 UTC (permalink / raw)


Coming from C++, what I used to think of as a class (a type and its
associated methods) is now roughly equivalent to a package.  Whenever I
try to name a package, I use what I normally think of as the type
itself.  For example, I would put a vector type in a package Vector or a
regular expression type in a package Regular_Expression.  However, once
I name the package, I am at a loss for what to call the data type inside.

I've been appending '_Type' to the package names, making names like 
Vector_Type, but I don't think that is the Right Thing(TM).  I've been 
skimming the style guides (which I heartily recommend all newbies to 
do), and I've seen a little bit of calling the type simply Instance or 
Object.  When used with the package name this looks nice, such as 
Vector.Instance.  What do the Ada gurus normally do for this? :)

Don't worry I don't intend to spark any naming "religious wars" like
http://www.informatik.uni-stuttgart.de/ifi/ps/ada-doc/style_guide/sec_3a.html#3.2.4 

warns :)

Thank you,
Ryan

PS - For everyone new to Ada (like me), I will repeat that you
should check out the style guides!  See
http://www.informatik.uni-stuttgart.de/ifi/ps/ada-doc/style_guide/cover.html 

for the Ada95 one.  I also found "Ada95 Lessons Learned" at
http://www.magi.com/~wb/ada95.html but I haven't read it all yet.




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

end of thread, other threads:[~2002-07-25 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-11-13 23:10 Naming conventions Michael.Rissman
  -- strict thread matches above, loose matches on Subject: below --
2002-07-25  1:48 Ryan Tarpine
2002-07-25  2:51 ` Ted Dennison
2002-07-25  3:11 ` tmoran
2002-07-25  4:28 ` SteveD
2002-07-25 11:50 ` David C. Hoos, Sr.
2002-07-25 15:20 ` Stephen Leake
2002-07-25 16:24   ` Jean-Pierre Rosen

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