Tagged unions [Was: What's wrong with std.variant.Variant?]

Dukc ajieskola at gmail.com
Tue Jun 16 13:06:06 UTC 2020


On Tuesday, 16 June 2020 at 12:58:50 UTC, Dukc wrote:
> so this resulted: [snip]

I might add that I should have used the `with` statement to cut 
on verbosity:

```
with (DetectedCycleDir.Kind) final switch(currentDir.kind)
{	case indifferent: ...
  	case known: ...
}
```



More information about the Digitalmars-d mailing list