[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 02:46:08 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12715
Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|regression |normal
--- Comment #2 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
(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.
But this code isn't "working". It's wrong and is a source of heisenbugs like
every other code throwing exceptions across language boundaries. I see no
excuse to have incorrect C library bindings and thus force D users to pay
on-going cost of fixing heisenbugs because of it.
And yes, it isn't a regression.
--
More information about the Digitalmars-d-bugs
mailing list