On emulating C++ Namespaces (don't ask why)

Radu rad.racariu at gmail.com
Fri May 4 18:43:52 UTC 2018


On Friday, 4 May 2018 at 17:50:59 UTC, 0xFFFFFFFF wrote:
> What am I violating here apart from the truth that our Mr. 
> Walter doesn't like namespaces:
>
> interface tlvs
> {
>       enum tlv { addr };
>
>    static:
>       void header();
> }
>
> Is this cool?
>
> Thanks

`final abstract class` is what you are looking for.


More information about the Digitalmars-d mailing list