comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@attbi.com>
Subject: Re: Q: Endless loop by dispatching
Date: Sun, 20 Jul 2003 12:36:11 GMT
Date: 2003-07-20T12:36:11+00:00	[thread overview]
Message-ID: <3F1A8CAB.2050400@attbi.com> (raw)
In-Reply-To: bfblik$18ef$1@msunews.cl.msu.edu

Chad R. Meiners wrote:

> Well one problem is that some people (as in me) think that Tucker's behavior
> is common sense. Although either way, it is best to have the compilers agree
> ;)

On most every issue debated in the ARG, the actual decision made is 
almost a detail.  The important parts are to make sure that everyone 
understands the issue, that we don't create new issues when fixing a 
current one, and to cover all cases.

I personally think that the effort needed to allow support two 
dispatching operations of the same name, and which one gets called 
depends on the place in the text of the call is unnecessary overhead. 
(Note that having several dispatching operations with the same name, and 
determining which is called by a view conversion is clearly necessary. 
The surprise in this case is that there is no view conversion needed.)

But again, any case where this comes up is expected to be one where the 
user is unintentionally shooting himself in the foot.  The intent of 
adding pragma Overriding or the overriding keyword is to allow the user 
to detect such cases at compile time.  THAT is the important part of the 
AI.  This particular example arose when I was demonstrating that there 
are cases of overriding where there would be no reasonable place to put 
the pragma or keyword.  It turned out that in this particular case, I 
was right to be wrong.  I understood the rules the way GNAT implements 
them, while others compilers do it differently.

I think that the final resolution will be to read things the way Tuck 
was arguing, with possibly a few "extra" words to insure that the only 
cases where the dual meanings arise are in package specs. I don't think 
we want a Beaujolais-like effect, where adding a with clause can change 
which version gets called.

-- 

                                                        Robert I. Eachus

�In an ally, considerations of house, clan, planet, race are 
insignificant beside two prime questions, which are: 1. Can he shoot? 2. 
Will he aim at your enemy?� -- from the Laiden novels by Sharon Lee and 
Steve Miller.




  reply	other threads:[~2003-07-20 12:36 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-11  8:22 Q: Endless loop by dispatching Michael Erdmann
2003-07-11  9:46 ` Jean-Pierre Rosen
2003-07-11 15:19   ` Michael Erdmann
2003-07-11 10:01 ` Q: " Dmitry A. Kazakov
2003-07-11 15:07   ` Michael Erdmann
2003-07-12  1:41     ` Jeffrey Carter
2003-07-14  8:48     ` Dmitry A. Kazakov
2003-07-14 18:38       ` Randy Brukardt
2003-07-15  8:47         ` Dmitry A. Kazakov
2003-07-15 17:23           ` Randy Brukardt
2003-07-16  8:08             ` Dmitry A. Kazakov
2003-07-16 17:44               ` Robert I. Eachus
2003-07-17  1:57               ` Robert A Duff
2003-07-18  9:10                 ` Dale Stanbrough
2003-07-18 20:26                   ` Robert I. Eachus
2003-07-18 21:35                     ` tmoran
2003-07-19  0:25                       ` Robert I. Eachus
2003-07-19  2:30                         ` tmoran
2003-07-19  5:48                           ` Robert I. Eachus
2003-07-21  8:38                             ` Dmitry A. Kazakov
2003-07-21 10:08                               ` Robert I. Eachus
2003-07-21 13:21                                 ` Dmitry A. Kazakov
2003-07-21 18:51                                   ` Robert I. Eachus
2003-07-22  7:41                                     ` Dmitry A. Kazakov
2003-07-22 10:36                                       ` Lutz Donnerhacke
2003-07-22 12:11                                         ` Dmitry A. Kazakov
2003-07-22 12:18                                           ` Lutz Donnerhacke
2003-07-22 14:46                                             ` Dmitry A. Kazakov
2003-07-22 15:11                                               ` Lutz Donnerhacke
2003-07-23  8:12                                                 ` Dmitry A. Kazakov
2003-07-19 14:44                     ` Chad R. Meiners
2003-07-20 12:36                       ` Robert I. Eachus [this message]
2003-07-11 16:27 ` T. Kurt Bond
2003-07-12  8:37   ` Michael Erdmann
2003-07-15  7:11     ` Kenneth Almquist
replies disabled

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