Different function attributes between debug and release build

Lodovico Giaretta via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 9 01:56:07 PDT 2016


On Saturday, 9 July 2016 at 01:05:54 UTC, Walter Bright wrote:
> On 7/8/2016 1:04 PM, Jerry wrote:
>> That is definetly a bug.
>
> Not a bug until it is posted to Bugzilla!

Well, I didn't post it there directly because I wasn't sure it 
could be considered a bug. The reason it is not @nogc in debug 
mode is that it performs extra checks that may throw exceptions 
(so I guess it isn't nothrow either), which isn't bad per se, but 
makes it difficult to verify (using unittest) that code using it 
is @nogc.


More information about the Digitalmars-d mailing list