Re: Does slicing have an effect?

2019-05-27 Thread XavierAP via Digitalmars-d-learn
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.

Re: Does slicing have an effect?

2019-05-25 Thread Max Haughton via Digitalmars-d-learn
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

Re: Does slicing have an effect?

2019-05-21 Thread rikki cattermole via Digitalmars-d-learn
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?

2019-05-21 Thread Dennis via Digitalmars-d-learn
Does slicing have an effect I'm not aware of, or is this a bug?