Adding a new design constraint to D
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Thu Jun 16 11:44:44 UTC 2022
On Thursday, 16 June 2022 at 11:36:15 UTC, Kagamin wrote:
> On Thursday, 16 June 2022 at 08:55:52 UTC, forkit wrote:
>> On Thursday, 16 June 2022 at 08:51:26 UTC, Olivier Pisano
>> wrote:
>>>
>>> Yes, every once in a while we get such discussions when
>>> someone finds out that D doesn't work exactly like [insert
>>> one's favorite language here] and pretends that is THE cause
>>> of the lack of popularity of D.
>>>
>>
>> [insert one's favorite language here]
>>
>> like this you mean:
>>
>> [some of the most popular and widely used languages in the
>> world]
>
> The D design is from Java, a popular and widely used language.
From
https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html :
Modifier | Class | Package | Subclass | World
:---------|:------------:| :-----: | :--------: | :---------:
public |Y |Y |Y |Y |Y
protected |Y |Y |Y |N
no modifier |Y |Y |N |N
private |Y |N |N |N
So not the same as Java…
More information about the Digitalmars-d
mailing list