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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Jun 9 10:16:06 UTC 2022


On Thursday, 9 June 2022 at 09:47:54 UTC, bauss wrote:
> But perhaps it's better to have `hidden` then anyway since it's 
> much more clear.

You might as well, adding a new protection level might be a 
breaking change thanks to meta-programming.

It is probably possible to write the parser in such a way that 
"hidden" isn't a keyword. At worst it will impact people who use 
a type called "hidden".



More information about the Digitalmars-d mailing list