Class views - a new concept
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Mon Jun 27 13:02:31 UTC 2022
On Sunday, 26 June 2022 at 23:33:42 UTC, forkit wrote:
> I'd be interested to know, if anyone else out there knows of
> any langauge, where a concept like this has been implemented
> (i.e. a way to restrict specific class member functions to
> specific class variables).
Well, you can do it in C++, but it isn't something you would use
frequently, so no real reason to add syntax for it.
I believe you can generally do it if you have class private and
multiple inheritance.
More information about the Digitalmars-d
mailing list