Conditionally set nothrow: for a block of code.

Nicholas Wilson iamthewilsonator at
Mon May 28 07:46:06 UTC 2018

On Thursday, 24 May 2018 at 18:51:31 UTC, Mike Franklin wrote:
> I'm trying to find a way to declare a block of code `nothrow:` 
> when compiling with -betterC, but not `nothrow` when not 
> compiling with -betterC.
> [...]

Not one now but, DIP 1012 will allow this as nothrow will become 
a regular enum attribute.

More information about the Digitalmars-d-learn mailing list