dip25 implementation
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Thu Aug 6 12:55:19 PDT 2015
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
More information about the Digitalmars-d
mailing list