On Thursday, 6 August 2015 at 19:55:20 UTC, Steven Schveighoffer
wrote:
On 8/4/15 4:54 PM, Steven Schveighoffer wrote:
How complete is the dip25 implementation?
For example, should this be expected to be an error?
struct S
{
int[5] x;
auto foo() { return x[];}
}
I'll note, that dmd 2.067.0 with -dip25 considered this an
error, head
does not. Adding a 'return' to the foo attributes fixes it in
2.067, but...
auto getS()
{
S s;
return s.foo();
}
does not error in either version, even with the return
attribute.
Anyone? Is this a bug or not?
-Steve
why is it related to dip25? slices uses pointers not ref?