comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: Ripple effect
Date: Fri, 08 Sep 2006 22:02:30 GMT
Date: 2006-09-08T22:02:30+00:00	[thread overview]
Message-ID: <WLlMg.177747$1i1.38608@attbi_s72> (raw)
In-Reply-To: <wccslj34k1i.fsf@shell01.TheWorld.com>

Robert A Duff wrote:
> 
> I suppose there are many other ways; I'm not sure which one you're
> leaning toward.  ;-)  Surely not to increase Beaujolais-like effects!?

The world would be a different place if we all drank a bottle of 
Beaujolais a day.

I'm leaning toward not have "use". It seems to work pretty well in 
SPARK. It also tends to make you think up good names.

> I'm not sure.  The user can declare a module "open".  If you say
> "use X", you get visibility on X (remember this is not Ada's "use").  If
> X is open, you also get (direct) visibility on the contents of X.  The
> part I'm not sure about is whether to _also_ provide something like
> Ada's "use" clause, which allows clients of a non-open module to open
> it.  It could work for records, too, like Pascal's "with" statement --
> except that I would eliminate the nasty Beaujolais-like effects of
> Pascal.

Thanks for the explanation.

I never found Pascal's "with" to be very useful.

> I guess I'm confused as to what the issue is, then.  If B doesn't
> reference A, then it shouldn't import it -- and the compiler should
> give a (suppressable) error.  Suppressable because you might want unused
> imports temporarily during construction.  Also, there are some cases
> where unused imports are needed.

I would probably outlaw them completely, with a way to create exceptions 
when they're actually needed.

-- 
Jeff Carter
"Pray that there's intelligent life somewhere up in
space, 'cause there's bugger all down here on earth."
Monty Python's Meaning of Life
61



  reply	other threads:[~2006-09-08 22:02 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-23 22:29 Ripple effect Jeffrey R. Carter
2006-08-24  9:21 ` Maciej Sobczak
2006-08-24 23:39   ` Jeffrey R. Carter
2006-08-25  7:03     ` Maciej Sobczak
2006-08-24 18:22 ` Adam Beneschan
2006-08-24 23:40   ` Jeffrey R. Carter
2006-09-04 13:52 ` Robert A Duff
2006-09-04 15:15   ` Jeffrey R. Carter
2006-09-04 18:06     ` Robert A Duff
2006-09-05  2:33       ` Jeffrey R. Carter
2006-09-05  7:23         ` Dmitry A. Kazakov
2006-09-05 16:28           ` Robert A Duff
2006-09-05 16:23         ` Robert A Duff
2006-09-05 21:36           ` Jeffrey R. Carter
2006-09-07 18:18             ` Robert A Duff
2006-09-08 22:02               ` Jeffrey R. Carter [this message]
2006-09-06  0:10           ` Randy Brukardt
2006-09-07 18:30             ` Robert A Duff
2006-09-07 21:21               ` Simon Wright
2006-09-08  2:08               ` Randy Brukardt
2006-09-09 14:55             ` adaworks
2006-09-05 23:52         ` Randy Brukardt
2006-09-07 19:09   ` Adam Beneschan
2006-09-07 19:21     ` Ed Falis
2006-09-07 19:46       ` Larry Kilgallen
2006-09-08 13:06         ` Ed Falis
replies disabled

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