comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dstanbro@bigpond.net.au>
Subject: Re: "private with" proposal
Date: Sun, 01 Dec 2002 01:00:53 GMT
Date: 2002-12-01T01:00:53+00:00	[thread overview]
Message-ID: <dstanbro-9C11D0.12000201122002@mec2.bigpond.net.au> (raw)
In-Reply-To: 3DE6ECCB.650C4DCF@earthlink.net

In article <3DE6ECCB.650C4DCF@earthlink.net>,
 Vincent Marciante <INVALID_EXCEPT_FOR_marciant@earthlink.net> wrote:

> Yes, I get that from reading the proposal.  But the extra syntax 
> couldn't be any real benifit.   I mean one would still be able to
> plain old "with" a (non-private) unit even if it was only utilized
> in the private part.  So, I don't buy the "documents the not for export"
> _guideline_ benifit when dealing with non-private units that are 
> allowed to be withed by but are not allowed to be exported by a unit.
> 

If you have

   with private fred;
   package x is...
 
this will tell the reader more than

   with fred;
   package x is...


For example if you have the latter, and you change
fred, what will be the outcome on the rest of the
program? Will you have to change any package that withs
'x'?

If you have 

   with private fred;

and you change fred, you know you will not have to 
change any package that changes x.

Quite a good thing for readability.

On the other hand, any decent tool set should be able
to tell you this anyway...

Dale



  reply	other threads:[~2002-12-01  1:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-09  6:39 Style: always declare subrountines? Victor Porton
2002-11-09 11:09 ` sk
2002-11-09 12:34 ` Victor Porton
2002-11-09 14:34   ` Jim Rogers
2002-11-09 14:53   ` sk
2002-11-09 15:36 ` Robert A Duff
2002-11-09 16:16 ` Frank J. Lhota
2002-11-09 16:28 ` chris.danx
2002-11-09 18:36 ` Simon Wright
2002-11-12 17:31 ` Stephen Leake
2002-11-18  1:52 ` ;Re: " Richard Riehle
2002-11-28 10:32   ` John English
2002-11-28 12:52     ` Lutz Donnerhacke
2002-12-03 11:15       ` John English
2002-12-03 12:22         ` Lutz Donnerhacke
2002-12-03 13:11           ` John English
2002-12-03 14:31             ` Robert A Duff
2002-12-03 14:41               ` Lutz Donnerhacke
2002-11-28 17:49     ` Vincent Marciante
2002-12-03 11:09       ` John English
2002-11-28 18:45     ` "private with" proposal Vincent Marciante
2002-11-28 20:12       ` David C. Hoos, Sr.
2002-11-29  4:28         ` Vincent Marciante
2002-12-01  1:00           ` Dale Stanbrough [this message]
2002-12-02 18:20       ` Stephen Leake
2002-12-03  5:37         ` Vincent Marciante
2002-12-03 19:24           ` Randy Brukardt
2002-12-04  3:52             ` Vincent Marciante
replies disabled

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