A 'lazy' compilation mode to make writting multiplatform code easier without having to clutter the project
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Wed Feb 22 14:39:49 UTC 2023
Alternative approach:
```d
module rt.event;
version(Windows)
public import ... : poll;
else version(...)
public import ... : poll;
else
static assert(0, "I don't know how to handle event loop here");
```
```d
module ...;
version(Windows):
void poll() {
}
```
More information about the Digitalmars-d
mailing list