[Issue 13543] std.file.FileException has useless __FILE__ and __LINE__ arguments tacked on

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Sep 28 20:14:38 PDT 2014


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

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #17 from Martin Nowak <code at dawg.eu> ---
The file and line information is an inherent part of our Throwable class, so of
course everyone is forwarding __FILE__ and __LINE__ [1].
We could replace the location info by teaching stack traces how to read debug
info, see bug 11870.

[1]:
https://github.com/D-Programming-Language/druntime/blob/36736e430b0c5299cf2ab9875be3b36236185f3b/src/object.di#L321

--


More information about the Digitalmars-d-bugs mailing list