`restricted` member variables

forkit forkit at gmail.com
Wed Jun 22 22:18:46 UTC 2022


On Wednesday, 22 June 2022 at 18:31:38 UTC, jmh530 wrote:
> On Wednesday, 22 June 2022 at 16:16:59 UTC, Dennis wrote:
>> [snip]
>>
>> Here you go: https://github.com/dlang/dmd/pull/14238
>
> +1

btw.

Great initiative !!

Would I be able to do the below with this change?


class C
{
  private(this):
    int x;
    string str;

    void secretMethod(){}

  private:
    // Do I need some friends ??

  public:
   // interface

}



More information about the Digitalmars-d mailing list