On Tuesday, 21 May 2019 at 20:44:49 UTC, rikki cattermole wrote:
On 22/05/2019 8:31 AM, Dennis wrote:
Does slicing have an effect I'm not aware of, or is this a bug?
It could have an effect if a was a struct/class via operator
overloads. But in this case it should probably be a bug.
didn't:
```
int[4] a;
a[] == a[];
```
No errors
Does slicing have an effect I'm not aware of, or is this a bug?
It calls druntime( https://d.godbolt.org/z/3gS3-E ), so
technically it does have an effect, even if that effect is
completely unused and therefore optimized away. Wh
int[4] a;
a[] == a[];
```
No errors
Does slicing have an effect I'm not aware of, or is this a bug?
It could have an effect if a was a struct/class via operator overloads.
But in this case it should probably be a bug.
Does slicing have an effect I'm not aware of, or is this a bug?