How does noexcept work?

Jeroen Bollen jbinero at gmail.com
Tue Nov 19 10:19:41 PST 2013


On Tuesday, 19 November 2013 at 18:09:29 UTC, Namespace wrote:
> On Tuesday, 19 November 2013 at 18:01:19 UTC, Jeroen Bollen 
> wrote:
>> If I have a function:
>> 	@safe pure void functionName() {
>> 		return;
>> 	}
>> Where do I put the noexcept?
>
> Did you mean nothrow?
> You can put it unfortunately on both sides.
> left:
>
> @safe pure nothrow void functionName() {
>     return;
> }
>
> right:
> @safe pure void functionName() nothrow {
>     return;
> }

Thanks, don't mind me being stupid. I was getting confused with 
C++. *facepalm*


More information about the Digitalmars-d-learn mailing list