Using closure in function scope to make "real" private class members
forkit
forkit at gmail.com
Sat Jun 4 01:00:18 UTC 2022
On Saturday, 4 June 2022 at 00:41:24 UTC, forkit wrote:
>
I'd like it, if I had 'the option', to do something like this in
D:
(where the attribute @sealed, results in static, compiler
enforced, protection of the interface of that class, from any
code outside of that class (i.e. code in the same module).
@sealed
@final
@orWhatever... it's irrelevant at this stage as to what the
attribute could be called.
// --- some module file
@sealed class A
{
}
@sealed class B
{
}
// ------------
More information about the Digitalmars-d
mailing list