comp.lang.ada
 help / color / mirror / Atom feed
From: Jim Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: OOD in Ada?
Date: Wed, 26 Jun 2002 04:57:17 GMT
Date: 2002-06-26T04:57:17+00:00	[thread overview]
Message-ID: <3D1949A3.1050401@worldnet.att.net> (raw)
In-Reply-To: Dl8S8.26239$cE5.16490@nwrddc02.gnilink.net

Hyman Rosen wrote:

> David Crocker wrote:
> 
>> There is no way I want to put all the expression and statement classes in
>> one package! The natural way to construct the project is to put each 
>> class
>> in its own file (and hence package, if I am using Ada).
> 
> 
> Keeping in mind that I don't know Ada, isn't this what child packages 
> are for?
> Declare the base expression and statement classes in a package, and put 
> each
> descendant in its own child package.
> 


That is one of the things hierarchical packages are for.
Note that use of hierarchical packages exposes public and private
package members differently than developing type hierarchies in
unrelated separate packages.

Also remember that the Ada package provides an equivalent to the
C++ namespace. It is certainly NOT reasonable to restrict
a namespace to contain only one class in C++. In the same way,
it is often beneficial to combine several type definitions in a
single Ada package.

Jim Rogers





  reply	other threads:[~2002-06-26  4:57 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-21 16:39 OOD in Ada? David Crocker
2002-06-21 17:20 ` Pat Rogers
2002-06-21 19:37   ` Ed Falis
2002-06-23  3:05   ` Ted Dennison
2002-06-23  7:03     ` tmoran
2002-06-24 21:41       ` Ted Dennison
2002-06-24 14:19     ` Stephen Leake
2002-06-21 17:22 ` Marin David Condic
2002-06-22  4:42 ` Jeffrey Carter
2002-06-22  9:18 ` Dr. Michael Paus
2002-06-22  9:47   ` Pascal Obry
2002-06-22 13:11     ` Dr. Michael Paus
2002-06-22 13:46       ` OOD in Ada? Correction Dr. Michael Paus
2002-06-22 18:21         ` Simon Wright
2002-06-28 23:57         ` Randy Brukardt
2002-07-09  8:45           ` Preben Randhol
2002-07-09 17:12             ` Mark Biggar
2002-07-09 19:40             ` Randy Brukardt
2002-06-23  3:33   ` OOD in Ada? steve_H
2002-06-23  4:55     ` Jim Rogers
2002-06-23  5:33       ` achrist
2002-06-25 18:00       ` Georg Bauhaus
2002-06-25 18:55         ` Marin David Condic
2002-07-07 18:19           ` Daniel Dudley
2002-06-23  7:46     ` Dr. Michael Paus
2002-06-24  5:06       ` steve_H
2002-06-23 19:26   ` Chad R. Meiners
2002-06-22 22:47 ` Dmitry A.Kazakov
2002-06-24 20:03 ` Kevin Cline
2002-06-25 13:32   ` David Crocker
2002-06-25 13:58     ` Marin David Condic
2002-06-26 18:16       ` tmoran
2002-06-26 18:47         ` Marin David Condic
2002-06-27 18:23           ` tmoran
2002-06-28 13:09             ` Marin David Condic
2002-06-26  0:59     ` Hyman Rosen
2002-06-26  4:57       ` Jim Rogers [this message]
2002-06-26 12:49       ` Marin David Condic
2002-06-26  9:01     ` Fraser Wilson
2002-06-29  0:08       ` Randy Brukardt
2002-07-01 11:50         ` Fraser Wilson
2002-07-05 20:02     ` Stephen J. Bevan
2002-07-09 19:19 ` Craig Carey
replies disabled

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