how to make private class member private

Alex sascha.orlov at gmail.com
Sun Mar 18 11:12:46 UTC 2018


On Sunday, 18 March 2018 at 09:56:31 UTC, psychoticRabbit wrote:
> However, are there no scenarios in which the person writing 
> that module, would not want to encapsulate their class, or some 
> parts of it, from the rest of the module (while not being 
> forced to put the class in it's own file)?
>
> If the answer is certainly no, not under any circumstances, 
> then fine, my idea is not worth any further consideration.
>
> And by no, I mean no for all, not just you.

I assume, that the following statement is equivalent to yours:

´´´
Are there any scenarios in which the person writing the class, 
would want to encapsulate their class, or some parts of it, from 
the rest of a module (while being forced to put the class in this 
module)?
´´´

The answer is no. As the person which is writing the class has 
always the power to decide which module to edit to put the class 
in.

And due this fact, the statement

> The fact is, the creator of the class is also the creator of 
> the module..

is the coolest semantic statement of the whole thread so far, I 
think :)


More information about the Digitalmars-d-learn mailing list