core.thread.Thread.start is marked as "nothrow" but documentation says it throws
tcak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jan 23 03:44:49 PST 2016
https://dlang.org/phobos/core_thread.html#.Thread
final nothrow Thread.start()
Looking at the code, no "throw new ..." is seen, but the function
"onThreadError" is called
which has "throw" in it.
Most weird thing is that "onThreadError" function is marked as
"nothrow" but it still throws.
I would think that yes, maybe the compiler might not be able to
see it because throw is found
in another function, but how come "onThreadError" throws with
nothrow.
More information about the Digitalmars-d-learn
mailing list