[Issue 13542] std.file.FileException has GetLastError() as a default argument

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 4 07:18:19 PDT 2014


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

--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to Walter Bright from comment #4)
> (In reply to Vladimir Panteleev from comment #3)
> > No. It throws a WindowsException.
> 
> Then it has changed recently? stdio.d line 961:

Oh, that's a completely different wenforce (which I also added a while ago, and
forgot about). It should be changed to use the new one, in
std.windows.syserror.

> > I suggest fixing the existing code without breaking it. Why do you think I
> > suggested otherwise?
> 
> Because I thought you suggested throwing a different error than
> FileException. IF that is incorrect, then I was wrong.

My suggestion was to make FileException an alias of OSException, so no code
will break (unless it compares the class name string from classinfo or
something).

--


More information about the Digitalmars-d-bugs mailing list