Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 04, 2018 On emulating C++ Namespaces (don't ask why) | ||||
---|---|---|---|---|
| ||||
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 |
May 04, 2018 Re: On emulating C++ Namespaces (don't ask why) | ||||
---|---|---|---|---|
| ||||
Posted in reply to 0xFFFFFFFF | 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.
|
May 04, 2018 Re: On emulating C++ Namespaces (don't ask why) | ||||
---|---|---|---|---|
| ||||
Posted in reply to 0xFFFFFFFF | On 4 May 2018 at 10:50, 0xFFFFFFFF via Digitalmars-d <digitalmars-d@puremagic.com> 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
But... modules?
|
May 05, 2018 Re: On emulating C++ Namespaces (don't ask why) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Manu | On Friday, 4 May 2018 at 19:19:19 UTC, Manu wrote:
> On 4 May 2018 at 10:50, 0xFFFFFFFF via Digitalmars-d <digitalmars-d@puremagic.com> 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
>
> But... modules?
I did intentionally sidelined modules, not an option
|
Copyright © 1999-2021 by the D Language Foundation