Grouped named import

Walter Bright newshound2 at digitalmars.com
Sun Jul 28 18:01:43 UTC 2024


D already has namespaces:

https://dlang.org/spec/attribute.html#namespace

A struct can also be used as a namespace:

```
struct c
{
     import sqlite3, miniz;
}
```

I've been using field-less structs this way myself.


More information about the dip.ideas mailing list