comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@notmyhomepage.invalid>
Subject: Re: on Ada abtract data type vs. OOP.
Date: Sun, 11 Sep 2022 10:02:48 +0200	[thread overview]
Message-ID: <tfk4n9$1rvoo$1@dont-email.me> (raw)
In-Reply-To: <tffkqb$17ki$1@gioia.aioe.org>

On 09.09.22 17:06, antispam@math.uni.wroc.pl wrote:
>   In OO there is
> dispatch mechanizm which _at runtime_ decides which Push to
> call.  In Ada you normally have overloading.  Tagged types
> use OO dispatch.  To see difference runtime type must be
> different than statically determined type, this is possible
> due to inheritance.  Without inheritance diffences are
> trivial.

Agreed, except  dynamic vs static determination of the
callable thing. In Ada, O.Push (5)  means determination
of the specific Push at compile time whenever the specific
type of O is known. You need class-wide operands for
this choice to be made at run time.

C++ has a similar feature, I think.

      reply	other threads:[~2022-09-11  8:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09  9:32 on Ada abtract data type vs. OOP Nasser M. Abbasi
2022-09-09 10:49 ` Dmitry A. Kazakov
2022-09-09 14:37   ` antispam
2022-09-09 15:21     ` Dmitry A. Kazakov
2022-09-09 15:30   ` Dmitry A. Kazakov
2022-09-09 14:04 ` Jeffrey R.Carter
2022-09-09 15:06 ` antispam
2022-09-11  8:02   ` G.B. [this message]
replies disabled

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