Why is D unpopular
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Jun 11 18:59:42 UTC 2022
On Saturday, 11 June 2022 at 18:03:14 UTC, Max Samukha wrote:
> On Saturday, 11 June 2022 at 15:43:52 UTC, Ola Fosheim Grøstad
> wrote:
>
>>
>> Simula was created for simulation. It added inheritance and
>> virtual functions to an Algol like language. You don't need
>> encapsulation to do simulation.
>
> Yes, you can break encapsulation with Simula. You need to rely
> on discipline.
>
>>
>> Talking about Smalltalk in this context is strange.
>
> Or talking about Simula, which doesn't have a mechanism for
> encapsulation.
C++, Java and D follows Simula. Simula's protection levels were
added in the 70s: hidden, protected and hidden protected, but the
defining characteristics is class inheritance, virtual functions
and coroutines.
More information about the Digitalmars-d
mailing list