Did the implicit conversion from special slice expression to static array ever work?

Nick Treleaven nick at geany.org
Fri Sep 23 13:35:31 UTC 2022


On Thursday, 22 September 2022 at 10:50:28 UTC, Quirin Schroll 
wrote:
> Has it ever worked?

It looks like the docs were merged but the compiler pull was not 
merged:
https://github.com/dlang/dmd/pull/4209#issuecomment-74065882

Before I found that I implemented `arr[e .. e+b]` for a simple 
variable `e`:
https://github.com/ntrel/dmd/commits/slice-size

I think at least that should be supported, probably the most 
common of all the non-constant index forms. But the original pull 
works for lots of other side-effect free expressions, besides the 
other forms.


More information about the Digitalmars-d mailing list