Non-ugly ways to implement a 'static' class or namespace?

ryuukk_ ryuukk.dev at gmail.com
Sun Jan 22 18:30:59 UTC 2023


On Friday, 20 January 2023 at 11:28:23 UTC, thebluepandabear 
wrote:


D is not java/C#, it's better than that!


```D

// api.d

void draw(){}


// app.d

import API = api;


void main()
{
     API.draw();
}

```


More information about the Digitalmars-d-learn mailing list