nothrow by default

Dennis dkorpel at gmail.com
Sat Jan 4 20:53:34 UTC 2020


On Saturday, 4 January 2020 at 16:05:10 UTC, Steven Schveighoffer 
wrote:
> What do you put if you throw? @safe by default has 
> alternatives. nothrow does not. Are we going to get a new 
> keyword/uda?

Walter's current plan seems to be allowing the `throw` keyword to 
be used as an attribute.

https://github.com/dlang/DIPs/pull/167/files

That still leaves the question how @nogc and pure will be 
negated, and how to specify the default attributes for a module 
without affecting template functions and functions with `auto` 
return-type.


More information about the Digitalmars-d mailing list