Interface Limitations in D

Elmar chrehme at gmx.de
Mon Sep 20 15:41:53 UTC 2021


On Monday, 20 September 2021 at 13:35:35 UTC, Steven 
Schveighoffer wrote:
> On 9/19/21 4:00 PM, Elmar wrote:
>> [...]
>
>
> Not sure what you are saying here.
>
> this code is valid:
>
> ```d
> interface I
> {
>   static immutable myVar = 0;
> }
> ```
>
> -Steve

Wow :-D ! This makes me laugh about my own dumbness. `static` 
members in `interface`s work.

Is there a way how I can help with documentation?


More information about the Digitalmars-d mailing list