Error about constructor calls in loops/labels, but there are no loops and labels?
Daniel N
no at public.email
Sun May 20 11:26:43 UTC 2018
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
More information about the Digitalmars-d
mailing list