comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Classes and packages - recommended practice
Date: Mon, 12 Dec 2005 20:02:22 +0100
Date: 2005-12-12T20:02:22+01:00	[thread overview]
Message-ID: <1313386.oMElcaVhjZ@linux1.krischik.com> (raw)
In-Reply-To: dnjtcg$f2f$1@sunnews.cern.ch

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



      parent reply	other threads:[~2005-12-12 19:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12 13:19 Classes and packages - recommended practice Maciej Sobczak
2005-12-12 18:58 ` Georg Bauhaus
2005-12-12 22:17   ` Randy Brukardt
2005-12-12 19:02 ` Martin Krischik [this message]
replies disabled

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