home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!usc!rpi!batcomputer!munnari.oz.au!cs.mu.OZ.AU!mundil.cs.mu.OZ.AU!fjh
- From: fjh@mundil.cs.mu.OZ.AU (Fergus James HENDERSON)
- Subject: Re: Ada 9x Dispatching Question
- Message-ID: <9223503.26777@mulga.cs.mu.OZ.AU>
- Keywords: Ada Dispatching Polymorphism
- Sender: news@cs.mu.OZ.AU
- Organization: Computer Science, University of Melbourne, Australia
- References: <334@sps.com> <1992Aug17.215219.967@inmet.camb.inmet.com> <9223120.6784@mulga.cs.mu.OZ.AU> <1992Aug21.145044.5567@inmet.camb.inmet.com>
- Date: Fri, 21 Aug 1992 17:17:56 GMT
- Lines: 30
-
- stt@spock.camb.inmet.com (Tucker Taft) writes:
-
- >In article <9223120.6784@mulga.cs.mu.OZ.AU>
- >fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
- >
- >>bwhite@cobra.camb.inmet.com (Bill White) writes:
- >>
- >>>Tucker believes that
- >>>it is important to have a syntactic marker to tell when a call is
- >>>dispatching. An alternative rule would be the C++ rule, where all
- >>>dispatching operations dispatch always. (Ada9X dispatching operations
- >>>are roughly equivalent to C++ virtual operations.) This means that the
- >>>compiler could not replace a dispatching call with a non-dispatching
- >>>call even if the compiler knows where the routine is going to go
- >>>anyway. This is considered expensive.
- [...]
- >The Ada 9X approach is consistent with the way derived types
- >work in Ada 83, with the addition of the "class-wide" alternative.
-
- So am I correct in understanding that the reason for having the syntactic
- marker is to maintain consistency with the rest of the language, rather
- than because the alternative are "considered expensive"?
-
- >S. Tucker Taft stt@inmet.com
-
- --
- Fergus Henderson fjh@munta.cs.mu.OZ.AU
- This .signature VIRUS is a self-referential statement that is true - but
- you will only be able to consistently believe it if you copy it to your own
- .signature file!
-