Inner Modules?
forkit
forkit at gmail.com
Sat Feb 12 21:52:41 UTC 2022
On Saturday, 12 February 2022 at 21:39:37 UTC, Basile B. wrote:
> On Saturday, 12 February 2022 at 21:23:08 UTC, forkit wrote:
>> On Saturday, 12 February 2022 at 19:48:23 UTC, Basile B. wrote:
>>>
>>> Yeah people who reads the forum know what you are talking
>>> about.
>>> This is an old chesnut here.
>>
>> I don't get it. This is not a valid topic for discussion?
>
> No it's just that this topic comes back every 3 monthes.
>
That's interesing.
Walter himself acknowleges there is a case for denying access to
private members 'even within a module' - in his article:
https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/
He provides an explanation of how to go about doing that - ie.
'the package module' (essentially, split modules into smaller
ones).
I am of the same opinion here as Walter, except, 'possibly' there
is simpler way to achieve this, by the use of inner modules,
where the same rules apply as they currently apply to modules.
More information about the Digitalmars-d
mailing list