What should happen here?
Adam D Ruppe
destructionator at gmail.com
Wed Sep 22 19:24:15 UTC 2021
On Wednesday, 22 September 2021 at 19:14:43 UTC, Steven
Schveighoffer wrote:
> What if you are calling D functions that call extern(C)
> functions?
Then it will be an argument to that other D function which makes
it a local variable there and the same rule can apply.
If the C function stores something beyond the immediate function,
you are already supposed to malloc it or addRoot etc, so I don't
think the depth of the call stack really makes a difference.
More information about the Digitalmars-d
mailing list