How can I test at compile time whether T is an instance of an interface ?
data pulverizer
data.pulverizer at gmail.com
Wed Sep 23 20:51:52 UTC 2020
On Wednesday, 23 September 2020 at 20:19:04 UTC, data pulverizer
wrote:
> This has prompted me to write a data structure that I thought
> would be impossible until now....
False alarm:
```
writeln("typeof(x.next): ", typeof(x.next).stringof);
```
gives:
```
typeof(x.next): const(Node)
```
Oh well.
More information about the Digitalmars-d-learn
mailing list