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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4f3d9c0fed1bd8f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news1.google.com!news-xfer.newsread.com!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Classes and packages - recommended practice Date: Mon, 12 Dec 2005 20:02:22 +0100 Organization: Cablecom Newsserver Message-ID: <1313386.oMElcaVhjZ@linux1.krischik.com> References: NNTP-Posting-Host: 80-218-112-22.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1134495939 19986 80.218.112.22 (13 Dec 2005 17:45:39 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Tue, 13 Dec 2005 17:45:39 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:6865 Date: 2005-12-12T20:02:22+01:00 List-Id: Maciej Sobczak wrote: > My question is - when do you use which form? Often use the 2nd form - but without the "use" - I rather use "use type". However all forms have there place in live. #1 Any class which originates from Ada.Some_Package. You can't add new packages to Ada. #2 When you need access to the private section of the class. i.E type X is tagged private; #3 When there are a few small classes with tight coupling. You can combine # 3 with separate when the body becomes to large. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com