[Issue 15027] cannot pass arguments of type DirEntry to std.file functions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 7 12:59:09 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15027

--- Comment #15 from Rainer Schuetze <r.sagitario at gmx.de> ---
>Check this out:
>https://github.com/D-Programming-Language/phobos/pull/3694

This is pretty much the workaround given by Kenji above. It has the downside
that you have to copy the full DirEntry object to the stack as a function
argument. Not a big issue for DirEntry, but it can be pretty bad if the struct
has an expensive postblit or if it is disabled.

--


More information about the Digitalmars-d-bugs mailing list