[Issue 13544] calls to std.file.FileException are idup-ing their string arguments

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 29 02:53:06 PDT 2014


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

--- Comment #6 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Walter Bright from comment #5)
> (In reply to Vladimir Panteleev from comment #2)
> > Doesn't that mean that we'd also need to add overloads to std.file.copy (and
> > many other std.file functions)?
> 
> No, the idea is to get the copy operation into the callee, not the caller.

So I understand that you want to force all callees to pass in an immutable
string, even though an immutable string is needed only for the rare case of
when an exception occurs. I don't see how that would be an improvement.

--


More information about the Digitalmars-d-bugs mailing list