alias this + std.array.popFront

Tobias Pankrath tobias at pankrath.net
Fri Mar 29 15:13:30 PDT 2013


Hello,

the following struct is not an input range because you can't call 
popFront on it, however I'd say you should be able to.

struct Wrapper {
     int[] _data;
     alias _data this;
}

Bug or intended behaviour?

Thank you!


More information about the Digitalmars-d-learn mailing list