comp.lang.ada
 help / color / mirror / Atom feed
From: Stephane.Barbey@di.epfl.ch (Stephane Barbey)
Subject: Re: An Ada9X mimic of C++ friends?
Date: 9 Feb 1995 09:59:40 GMT
Date: 1995-02-09T09:59:40+00:00	[thread overview]
Message-ID: <1995Feb9.085457@di.epfl.ch> (raw)
In-Reply-To: 3hcao9$96b@solar.sky.net

In article <3hcao9$96b@solar.sky.net>, jhoward@solar.sky.net (John Howard) 
: So my question is: does the explicit use of "TAGGED" in Ada95 have the same 
: negative consequences as specifying "virtual"?

No, Ada 83 and Ada 95 take the approach that every primitive operation
(i.e. method) of a tagged type (i.e. a class) can be freely overriden.

The reserved words "virtual" (C++) or "override" (Object Pascal) are
not needed in Ada 95, because dispatching (i.e. dynamic binding) does
not occur on a by-method basis, but on a by-call basis (i.e. the
dispatching calls), thus providing all the power and more flexibility
than typical OO languages.

-Stephane 

--
Stephane Barbey				"It's not easy getting real wings"	
INJ-335, barbey@di.epfl.ch



  reply	other threads:[~1995-02-09  9:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-07 13:55 An Ada9X mimic of C++ friends? Donald M Needham
1995-02-07 22:38 ` David Weller
1995-02-08  9:32 ` Michel Gauthier
1995-02-08 16:27 ` Cyrille Comar
1995-02-09  5:55   ` John Howard
1995-02-09  9:59     ` Stephane Barbey [this message]
1995-02-09 21:16     ` Norman H. Cohen
1995-02-10 23:11     ` Cyrille Comar
  -- strict thread matches above, loose matches on Subject: below --
1995-02-07 19:56 Dave Papay M/S 7G32 x2791
replies disabled

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