Using closure in function scope to make "real" private class members

Ali Çehreli acehreli at yahoo.com
Sun Jun 5 01:32:45 UTC 2022


On 6/4/22 04:15, forkit wrote:

 > You normally come up with ideas to issues that people raise

Has anyone suggested the following syntax yet?

class C {
   private class:
     // really private

   private module:
     // module-level as today

   private:
     // same as 'private module'
}

If there are syntax issues, perhaps paranthesis can work:

   private(class):

Ali



More information about the Digitalmars-d mailing list