Phobos begat madness

Steven Schveighoffer schveiguy at yahoo.com
Fri Jun 22 22:25:35 UTC 2018


On 6/22/18 6:03 PM, Adam D. Ruppe wrote:
> On Friday, 22 June 2018 at 21:37:07 UTC, Walter Bright wrote:
>> I decided to accept the Mission Impossible of figuring out why it was 
>> inferred as @system.
> 
> 
> This would be trivial if the compiler had decent error messages.
> 
> https://issues.dlang.org/show_bug.cgi?id=17374
> 
> It could just tell us the bottom-most call that was not @safe (or @nogc 
> or nothrow or whatever) that is not inferred, and boom, problem solved 
> in seconds.

That would be awesome. I've gone through the "annotate this and 
continue" exercise, and it is not fun. Especially when the template is 
used in many places, you have to make a copy of the template to play with.

-Steve


More information about the Digitalmars-d mailing list