druntime posix .. nothrow!

Brad Roberts braddr at puremagic.com
Wed Apr 9 22:19:30 PDT 2014


On 4/9/14, 9:49 PM, Etienne Cimon wrote:
> On 2014-04-10 00:01, Brad Roberts wrote:
>> And you aren't submitting a pull request with those changes because...
>
> Well, I was hoping for someone to catch on with the extern(C) = nothrow idea. Maybe this reallyy
> belongs in DMD!

It shouldn't, because it's not 100% true, even for libc related functions.  Consider qsort and it's 
function pointer parameter.  There's other examples of the same.  Just because most are no through 
doesn't imply they all are.  Leave the realm of libc and it's even less true.  Consider all the C 
wrappers for c++ libraries.  It's perfectly legal for any of those to throw.

So, not gonna happen.  Please do consider spending a little time to open pull requests for the ones 
that it's safe to be specified as nothrow.  Someone has to and the more people investing little bits 
of their time the better.  Waiting for someone else to do it for you could be a very long wait.


More information about the Digitalmars-d mailing list