[Issue 12715] _compare_fp_t/qsort/bsearch C functions should be nothrow

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 9 06:35:25 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12715

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|regression                  |normal

--- Comment #4 from Martin Nowak <code at dawg.eu> ---
(In reply to Martin Nowak from comment #3)
> (In reply to Walter Bright from comment #1)
> > This is deliberate. The reason is to not break existing code. People
> > shouldn't have to go back and annotate code with 'nothrow' that was already
> > working.
> 
> Those callbacks were annotated nothrow 4 years ago so the code breaking
> argument doesn't make sense.
> https://github.com/WalterBright/druntime/commit/
> 370ffd8d6da3978f742fd17572b418aaf85db355

Sorry for the noise, global attributes do not affect function types in function
signatures, so you were right about the code breakage.

--


More information about the Digitalmars-d-bugs mailing list