On Thursday, 18 August 2022 at 11:25:22 UTC, Paul Backus wrote:

I think the closest way to approximate this in D is to use a zero-length static array:

```d
struct ArenaChunk {
    size_t size;
    ArenaChunk* next;
    char[0] memory;
}
```

Would Nullable be a good option as well? [https://dlang.org/phobos/std_typecons.html#Nullable](https://dlang.org/phobos/std_typecons.html#Nullable)

Reply via email to