We need an internal keyword.
luckoverthere
luckoverthere at gmail.cm
Sun Oct 21 15:45:25 UTC 2018
On Sunday, 21 October 2018 at 03:17:23 UTC, 12345swordy wrote:
> So that classes can share some of their variables but not
> others in a module.
>
> IE.
>
> class A
> {
> internal int A; //This is shared in the module
> private int B; // But not this.
> }
>
> No need to reintroduce the "Friend" feature from cpp.
I feel like if this is a problem your Module has too much in it
and you should refactor it into more than 1 module. If you need
to protect a module from itself then I feel like there is too
much in it, essentially.
More information about the Digitalmars-d
mailing list