comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Other Ada Standards (was Re: SIGada Conference)
Date: 24 Dec 2003 16:41:54 -0500
Date: 2003-12-24T16:41:54-05:00	[thread overview]
Message-ID: <wccekutx599.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: bebbba07.0312241216.161fb3f5@posting.google.com

18k11tm001@sneakemail.com (Russ) writes:

> Perhaps you could explain why you seem to think the two are mutually
> exclusive, because I don't get it.

Every change has some cost.  The ARG (mostly volunteers!) must write RM
wording, which is not trivial to get right, even for trivial-seeming
functionality.  But first they have to spend time arguing about what the
best rule is -- there are at least 3 viable possibilities I know of.
Compiler writers have to make changes to their compilers, and in many
cases, to other tools.

Therefore, there's only a certain amount of change that can be
tolerated, so Marin is correct to say that making *this* change would
tend to limit the chances of some other change.

This change is hard to evaluate: the cost is near zero, and the benefit
is also near zero, so the cost/benefit ratio is difficult to estimate.
I've seen many such cases over the years, and I'd guess they usually
lose.

> Now we swing over to the other extreme: something as trivial as "use"
> implying "with" is somehow too "tricky". I just don't see how or why.

I think Robert Eachus explained why.  I think he overestimates the
problem, but it's not "trivial".  And since the benefit is near zero,
it's probably not worth the trouble.  (I know you don't agree that the
benefit is near zero.  Junk in the front yard, and all that.)

Here's an example of why it might not be trivial to implement.  Most
compilers come with a tool to automatically figure out what needs to be
recompiled (and compilation order, which matters for some compilers).
This requires processing with_clauses, which have a very simple set of
visibility rules, that do not require looking "inside" of packages.
The new rule would require processing use_clauses as well, which *do*
require looking inside packages.  That's a mechanism that is obviously
supported by the compiler itself, but might be a whole new concept for
the recompilation tool.

> The rule could simply be that "use" implies "with" unless the implied
> "with" wouldn't compile, in which case "use" would *not* imply "with",
> and the programmer would be responsible for supplying the necessary
> "with".

It seems friendlier to me that it should imply the "appropriate" with.
There's always *some* with that it can imply, which is a prefix of the
use'd name.

> I can see one potential technical flaw. If the implied "with" is too
> general, then I can understand why someone might oppose it. I don't
> think this is the case, but I am not 100% sure because I am not an Ada
> expert. Perhaps someone could clarify that. Would the implied "with"
> "drag in" more than is minimally necessary to compile the program? If
> not, I don't see any reasonable objection to it.

No, it wouldn't "drag in" more.

> Just out of curiousity, approximately what percentage of implied
> "with" declarations in actual practice wouldn't compile? Are we
> talking 25% or 0.1%?

I'd guess about 1-to-2%, in the code I write.  That's a wild guess.
But as I said above, it's not that hard to avoid even this problem.

- Bob



  reply	other threads:[~2003-12-24 21:41 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <468D78E4EE5C6A4093A4C00F29DF513D04B82B08@VS2.hdi.tvcabo>
2003-12-17  1:01 ` SIGada Conference Stephen Leake
2003-12-17  3:19   ` Robert I. Eachus
2003-12-18  6:55     ` Robert C. Leif
2003-12-18 15:23       ` Other Ada Standards (was Re: SIGada Conference) Robert I. Eachus
2003-12-18 18:27         ` Robert A Duff
2003-12-19  7:38           ` Robert I. Eachus
2003-12-19 23:10             ` Robert A Duff
2003-12-19  8:51           ` Russ
2003-12-19 17:03             ` tmoran
2003-12-20  0:43               ` Russ
2003-12-19 23:18             ` Robert A Duff
2003-12-20  7:05               ` Russ
2003-12-20  9:06                 ` Nick Roberts
2003-12-20 17:43                   ` Robert I. Eachus
2003-12-22  0:07                     ` Russ
     [not found]                       ` <bfcib1-r43.ln1@beastie.ix.netcom.com>
2003-12-22 17:10                         ` Robert I. Eachus
2003-12-22 18:25                           ` Larry Hazel
2003-12-23 16:55                             ` Chad R. Meiners
2003-12-24 13:17                               ` Marin David Condic
2003-12-24 14:57                                 ` Robert A Duff
2003-12-25  3:26                                   ` Marin David Condic
2004-01-03 19:03                                   ` Pascal Obry
2003-12-24 20:16                                 ` Russ
2003-12-24 21:41                                   ` Robert A Duff [this message]
2003-12-25  2:51                                     ` Robert I. Eachus
2003-12-25  3:42                                     ` Marin David Condic
2003-12-25  6:35                                       ` Russ
2003-12-25 12:34                                         ` Georg Bauhaus
2003-12-25 15:38                                           ` Marin David Condic
2003-12-26 20:09                                             ` Russ
2003-12-27  3:39                                               ` Georg Bauhaus
2003-12-27  7:40                                                 ` Russ
2003-12-27 11:18                                                   ` Georg Bauhaus
2003-12-28  5:56                                                     ` Russ
2003-12-27 11:24                                                 ` Dmitry A. Kazakov
2003-12-27 12:21                                                   ` Georg Bauhaus
2003-12-28 11:44                                                     ` Dmitry A. Kazakov
2003-12-28 13:59                                                       ` Georg Bauhaus
2003-12-28 19:43                                                         ` Robert A Duff
2003-12-28 20:47                                                           ` Dmitry A. Kazakov
2003-12-28 19:54                                                         ` Dmitry A. Kazakov
2003-12-29  6:07                                                           ` Georg Bauhaus
2003-12-29 11:28                                                             ` Dmitry A. Kazakov
2003-12-29 13:36                                                               ` Chad R. Meiners
2003-12-29  6:25                                                           ` Georg Bauhaus
2003-12-27 18:43                                                   ` Robert A Duff
2003-12-28 11:45                                                     ` Dmitry A. Kazakov
2003-12-28 19:59                                                       ` Robert A Duff
2003-12-30 18:03                                                     ` Peter Richtmyer
2003-12-30 23:02                                                       ` Alexandre E. Kopilovitch
2003-12-27 21:56                                                   ` Russ
2003-12-27 22:52                                                     ` Robert I. Eachus
2003-12-28 11:44                                                     ` Dmitry A. Kazakov
2003-12-28 18:14                                                       ` Robert I. Eachus
2003-12-28 19:55                                                         ` Dmitry A. Kazakov
2003-12-29  2:08                                                           ` Robert I. Eachus
2003-12-29 11:29                                                             ` Dmitry A. Kazakov
2003-12-29 13:44                                                               ` Chad R. Meiners
2003-12-29 17:07                                                                 ` Robert I. Eachus
2003-12-28 23:17                                                       ` Russ
2003-12-28 23:45                                                         ` Wes Groleau
2003-12-27 14:09                                                 ` Marin David Condic
2003-12-27 19:25                                                   ` Robert I. Eachus
2003-12-28  1:47                                                   ` Russ
2003-12-23 10:49                           ` come from joke (was " Peter Hermann
2003-12-23 12:19                             ` come from joke Samuel Tardieu
2003-12-23 17:00                               ` Arthur Evans Jr
2003-12-23 22:03                               ` Wes Groleau
2003-12-25  0:37                                 ` Stephane Richard
2003-12-27  1:00                                   ` John Woodruff
2003-12-24 18:48                               ` Simon Wright
2003-12-23 12:39                             ` come from joke (was Re: Other Ada Standards (was Re: SIGada Conference) Vinzent 'Gadget' Hoefler
2003-12-23 15:50                             ` Georg Bauhaus
2003-12-23 16:03                               ` Vinzent 'Gadget' Hoefler
2003-12-23 16:12                               ` Peter Hermann
2003-12-22 18:29                       ` Warren W. Gay VE3WWG
2003-12-20 19:44                   ` tmoran
2003-12-22 18:22                   ` Warren W. Gay VE3WWG
2003-12-20  0:39             ` Russ
2003-12-20  1:44               ` unknown
replies disabled

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