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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Jun 8 11:18:42 UTC 2022


On Wednesday, 8 June 2022 at 11:07:39 UTC, forkit wrote:
> I wouldn't object to 'hidden int x'.

It is at least easy to understand.


(Simula had "hidden", "protected" and "hidden protected" 
(private), but that doesn't matter ;-)




More information about the Digitalmars-d mailing list