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$> (raw)
In-Reply-To: <tffkqb$17ki$>

On 09.09.22 17:06, 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: 10+ 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]
2024-04-19 16:25 ` Nioclás Pól Caileán de Ghloucester
2024-04-19 22:05   ` Lawrence D'Oliveiro
replies disabled

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