sumtypes for D

rikki cattermole rikki at cattermole.co.nz
Tue Nov 29 19:23:57 UTC 2022


One idea: offer a way to transform template arguments prior to passing 
them to the parameter.

```d
Foo!(const(int));
struct Foo(T |= Unqual) {}
```

Becomes:

```d
Foo!(Unqual!(const(int)));

struct Foo(T) {}
```



More information about the Digitalmars-d mailing list