TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show HTML Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date:
Tue, 14 Apr 1998 22:47:38 +1000
Reply-To:
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
Content-Type:
text/plain; charset=us-ascii
Organization:
@home
From:
Alan E & Carmel J Brain <[log in to unmask]>
Parts/Attachments:
text/plain (49 lines)
C. Daniel Cooper wrote:
>
> Mike Brenner wrote,
>
> > Here is another statistic. To add it up carefully, you must not
> > just grep on the word with. You must filter out comments nad
> > quoted string and variable containing the word with as a substring.

> Of course, the counting also needs to consider that a context clause
> of the form "WITH Foo, Bar;" should count as *two* not one: the actual
> motivation is to reduce the number of dependencies, not the the number
> of clauses per se.

What about the use of renaming to package ( a subset of resources of )
other packages into one logically related chunk?
Thus

with X;
with Y;
with Z;

package XYZ is

  FOO renames X.FOO;
  BAR renames Y.BAR;
  FRED renames Z.FRED;
  BILL renames Z.BILL;
  ANYTHING_BUT_SUE renames Z.ANYTHING_BUT_SUE;

end XYZ;

And then a with of XYZ makes visible only those parts of X,Y, and Z that
you want.

Is this a sign of good structure? HECK NO! But if you're re-using
components, it may be that re-structuring is a luxury you can't afford.

I've not seen this used much, but when it was, it was relatively
innocuous, and hid a lot of relatively dangerous resources in the specs.
Yet it seems anathema to me, a sign of bad design.

Comments?
--
[log in to unmask]     <> <>    How doth the little Crocodile
| Alan & Carmel Brain|      xxxxx       Improve his shining tail?
| Canberra Australia |  xxxxxHxHxxxxxx _MMMMMMMMM_MMMMMMMMM
 [log in to unmask]  o OO*O^^^^O*OO o oo     oo oo     oo
                    By pulling MAERKLIN Wagons, in 1/220 Scale

ATOM RSS1 RSS2