https://issues.dlang.org/show_bug.cgi?id=15027
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Walter Bright <[email protected]> --- (In reply to Rainer Schuetze from comment #2) > The main problem is that DirEntry does not qualify as an InputRange, because > the aliased property returns an rvalue. This cannot be passed to popFront > through UFCS as it expectes a ref argument. I think this is correct. If you remove the 'ref' from 'popFront', it works. It also works if DirEntry is defined as: string name; alias name this; i.e. then 'name' becomes an lvalue. popFront() cannot update an rvalue. --
