On Monday, 19 July 2021 at 00:52:39 UTC, Paul Backus wrote:

The closest you can get is to use a string mixin:

```d
enum debugWriteln(string expression) =
`writeln(q"(` ~ expression ~ `)", " = ", ` ~ expression ~ `);`;

// Usage:
mixin(debugWriteln!"lobjExchanges.count");
```

clever :)

Reply via email to