comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Extension of non-limited type needs limited component
Date: Sat, 16 Nov 2002 16:15:41 GMT
Date: 2002-11-16T16:15:41+00:00	[thread overview]
Message-ID: <wcczns932z6.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: ar5ea7$f94ic$1@ID-77047.news.dfncis.de

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> All that are more or less decoupled things. Why should we tie all of them 
               ^^^^^^^^^^^^
> under one roof?

Less, I'd say.  ;-)

They are all closely related to whether you can copy the thing.
To answer my question properly, you would have to explain exactly
when each of the things I mentioned should be allowed.  That's not
easy.  No, I don't expect anybody to do all that work for an informal
usenet discussion.  ;-)

>...[However, I am afraid, that to correctly deal with it one 
> would need multiple dispatch anyway.]

I like the idea of multi-dispatch, but all of the languages I've seen
that support it seem confusing and/or error-prone.  You need a rule that
makes it predictable which method(s) will be called in every case.  Not
just predictable in a formal sense, but predictable by mere mortal
programmers -- i.e. the programmer's guess should match what the
compiler actually does.  And you need a way to prevent ambiguities --
cases where two different methods are "reasonable" should be forbidden,
preferably at compile time.  And you need a way to organize the code --
with single dispatch, you can put the "methods" with the "type" (or
"class" or whatever).

- Bob



  reply	other threads:[~2002-11-16 16:15 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-13 10:03 Extension of non-limited type needs limited component Mike
2002-11-13 12:06 ` Jean-Pierre Rosen
2002-11-14  9:26   ` Mike
2002-11-14 11:43     ` David C. Hoos, Sr.
2002-11-14 12:33     ` Jean-Pierre Rosen
2002-11-14 14:27       ` Dmitry A. Kazakov
2002-11-14 19:25         ` Randy Brukardt
2002-11-15 10:04           ` Dmitry A. Kazakov
2002-11-15 22:09             ` Robert A Duff
2002-11-16 12:39               ` Dmitry A. Kazakov
2002-11-16 16:15                 ` Robert A Duff [this message]
2002-11-17 11:14                   ` Dmitry A. Kazakov
2002-11-17 12:26               ` Dale Stanbrough
2002-11-18 20:33                 ` Randy Brukardt
2002-11-18 21:48               ` Eric
2002-11-19 14:38               ` Eric
2002-11-15 21:41           ` Robert A Duff
2002-11-16  3:54             ` Randy Brukardt
2002-11-15  0:30         ` Robert A Duff
2002-11-15 10:22           ` Dmitry A. Kazakov
2002-11-15 21:56             ` Robert A Duff
2002-11-16 12:39               ` Dmitry A. Kazakov
2002-11-14 23:39     ` Robert A Duff
2002-11-15 21:51       ` Mike
2002-11-13 14:28 ` Robert A Duff
2002-11-14  9:33   ` Mike
2002-11-14  9:35     ` Lutz Donnerhacke
2002-11-14 21:41     ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-11-15 10:47 Grein, Christoph
2002-11-15 12:12 ` Dmitry A. Kazakov
2002-11-15 13:29   ` Jean-Pierre Rosen
2002-11-15 14:34     ` Dmitry A. Kazakov
2002-11-15 21:26     ` Robert A Duff
replies disabled

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