PhobosV3+ Fundamental Elements

Walter Bright newshound2 at digitalmars.com
Mon Sep 7 23:25:39 UTC 2026


One issue with templates is bloat resulting from:

```d
string toString(T)(T v) { ... }
int i; s = toString(i);
byte b; t = toString(b);
```

Two different functions are generated, whereas only one is necessary. Integral 
promotions are a highly useful way to reduce the amount of code generation.


More information about the Digitalmars-d mailing list