From: matomira@di.epfl.ch (Fernando Mato Mira)
Subject: No multiple dispatch in Ada95?
Date: 1995/04/05
Date: 1995-04-05T00:00:00+00:00 [thread overview]
Message-ID: <3lu8tp$eep@disunms.epfl.ch> (raw)
Hello,
I checked the reference manual. There's no multiple dispatching
in Ada95?
I see no reason why a left-to-right disambiguating rule was not good enough.
You only add the extra dispatching complexity when the methods defined
require it. And it should be faster than simulating it by
a `double dispatch'. What's worse, time is already wasted checking
for a Constraint_Error.
I have to leave CLOS for a year. I would have exchanged multiple
inheritance for multiple dispatch. Now it's not clear that the effort
or risk of choosing Ada95 instead of C++ (yuck!) is worth it.
[Yes, I know C++ is risky _by design_]
Really big goof, and it's a pity given that Ada got the `message send'
syntax right..
PS: And why not reaping the benefits of both single inheritance
and contract-based design by restricting inheritance to
only one parent with structure plus an arbitrary number of abstract
parents with null records?
--
F.D. Mato Mira http://ligwww.epfl.ch/matomira.html
Computer Graphics Lab matomira@epfl.ch
EPFL FAX: +41 (21) 693-5328
next reply other threads:[~1995-04-05 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-05 0:00 Fernando Mato Mira [this message]
1995-04-06 0:00 ` No multiple dispatch in Ada95? Robert Dewar
1995-04-07 0:00 ` Fernando D. Mato Mira
1995-04-06 0:00 ` Mark A Biggar
1995-04-07 0:00 ` Fernando Mato Mira
1995-04-07 0:00 ` Norman H. Cohen
1995-04-06 0:00 ` Tucker Taft
1995-04-07 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox