From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7ae84c67e252c8f8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-24 18:48:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!pcp01485549pcs.limstn01.de.comcast.NET!not-for-mail From: Ryan Tarpine Newsgroups: comp.lang.ada Subject: Naming conventions Date: Wed, 24 Jul 2002 21:48:36 -0400 Message-ID: <3D3F58F4.9050305@hotmail.com> NNTP-Posting-Host: pcp01485549pcs.limstn01.de.comcast.net (68.82.51.136) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1027561733 32076887 68.82.51.136 (16 [151722]) User-Agent: Mozilla/5.0 (Windows; U; Win9x; en; Preview) Gecko/20020603 Beonex/0.8-stable X-Accept-Language: en-us, en Xref: archiver1.google.com comp.lang.ada:27387 Date: 2002-07-24T21:48:36-04:00 List-Id: 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.