comp.lang.ada
 help / color / mirror / Atom feed
From: Chad Bremmon <chad.bremmon@comm.hq.af.mil>
Subject: Re: Adding a "Project Types" layer to a project
Date: 1996/05/02
Date: 1996-05-02T00:00:00+00:00	[thread overview]
Message-ID: <31886BD1.51E@comm.hq.af.mil> (raw)
In-Reply-To: 3186E51C.250@post.drexel.edu


Chris Papademetrious wrote:
> 
> I'm beginning a large project, and I'd like to base the entire project off base types defined in a package, as an extra layer of indirection for which I can
> change the underlying functionality later.  The problem is, I'm having problems adding this level of indirection.  Keep in mind I know very little about Ada 95
> save for what I'm picking up here on the newsgroups and such...
> I would hesitate a bit to base everything on a "base types" package.  Although it seems like a good 
idea at first, when you are in the small scale, as the project gets larger, the initially simple 
types package gets more and more difficult to manage. 

We have to keep in mind the "object oriented way."  Supposedly, the data and the function are 
together.  What you have shown with your software problem is that by taking the vector functions and 
putting them in another package, they are not available when you use the vector type later on.  If 
you are using vectors, use the vectors package.  The indirection provided by the types package seems 
to confuse the problem.

I'm not saying that a "standard" types package is not a good thing.  There are times when it may 
make more sense that you might consider using a types package.  In those instances, you may consider 
limiting the types package to be within the subsystem you are using.  

cb




  parent reply	other threads:[~1996-05-02  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-01  0:00 Adding a "Project Types" layer to a project Chris Papademetrious
1996-05-01  0:00 ` Robert A Duff
1996-05-01  0:00 ` John English
1996-05-02  0:00 ` Chad Bremmon [this message]
1996-05-06  0:00   ` Chris Papademetrious
replies disabled

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