Thread overview |
---|
January 08, 2024 [Issue 24323] x[0 .. 2] cast to Ty[2], x[$-2 .. $] does not? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24323 --- Comment #1 from Manu <turkeyman@gmail.com> --- Actually, the number of variable terms is irrelevant; the equation just needs to be simplified and the variable terms will naturally be cancelled out. -- |
January 08, 2024 [Issue 24323] x[0 .. 2] cast to Ty[2], x[$-2 .. $] does not? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24323 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dkorpel@live.nl Resolution|--- |DUPLICATE --- Comment #2 from Dennis <dkorpel@live.nl> --- > I can't possibly be the first one to report this, what's the reason? Just hard to implement the bit of algebra required? You're right: https://github.com/dlang/dmd/pull/4209 The difficulty is determining how this would fit with the rest of constant folding. *** This issue has been marked as a duplicate of issue 13700 *** -- |
January 08, 2024 [Issue 24323] x[0 .. 2] cast to Ty[2], x[$-2 .. $] does not? | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24323 --- Comment #3 from Manu <turkeyman@gmail.com> --- Difficult or otherwise, it's a pretty lame hole, and it's been that way for decades. It should be done. -- |
Copyright © 1999-2021 by the D Language Foundation