Should core.stdc.signal.signal be nothrow @nogc??
Bottled Genie via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 15 23:42:27 PDT 2016
Hello All
I am trying to make use of function signal from module
core.stdc.signal.
The function needs a function pointer as an argument and since
signal has been marked with attributes @nogc and nothrow, the
function I pass to it as an argument also has to be nothrow and
@nogc. Are these attributes intended on signal? If yes, how does
it help.
Why should C functions in core.stdc be marked nothrow and @nogc?
And how do I overcome the restriction imposed on function pointer
that I want to pass to signal? In my case the function I want to
pass as argument to signal is actually not @nogc nothrow. What
should I do?
Regards
- Genie
More information about the Digitalmars-d
mailing list