On Sunday, 20 May 2018 at 10:56:27 UTC, Yuxuan Shui wrote:
On Sunday, 20 May 2018 at 00:05:39 UTC, Jonathan M Davis wrote:
because it tends to become very difficult to get right in all cases and results in situations where the programmer is forced to do something in order to make the compiler shut up

Well, doesn't this post show exactly this problem, and that's because the compiler is too dumb?

Making the compiler smarter will only decrease the number of these cases.

There is one construct which is guaranteed to run at the end...

this(ExceptionType t, long rowsNum, string file = __FILE__, size_t line = __LINE__) pure @safe {

    type = t;

    string msg;
    scope(exit) super(msg, file, line); // w00t

Reply via email to