On Thursday, 30 January 2020 at 16:23:54 UTC, Michael wrote:
Is there a way to detect unused imports?
It happened to me that I used imports which I did not need in
the end. So, I'd like to remove them easily.
https://issues.dlang.org/show_bug.cgi?id=20442
TL;DR
This has come up in the past a
https://run.dlang.io/is/zRcj59
```
alias Alg = Algebraic!(int, string);
void main()
{
int n = 2;
Alg value;
value = n == 2 ? 2 : "string";
}
```
The original code used SumType but the effect is the same.
I suppose that I could write the following:
```
if(n == 2) value = 2
On Friday, 14 December 2018 at 17:45:26 UTC, rjframe wrote:
On Fri, 14 Dec 2018 16:33:44 +, Giovanni Di Maria wrote:
I need the flow of calls.
Thank you Giovanni
gprof will do this on Linux/BSD if gdc supports the -pg flag (I
don't know whether it would, but assume so) and your
applica