phobos
phobos copied to clipboard
std.complex: Add member function to returnComplex as a native type
So that std.complex
can be passed to extern(C) complex functions where ABI compatibility is required.
Thanks for your pull request, @ibuclaw!
Bugzilla references
Your PR doesn't reference any Bugzilla issue.
If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
Testing this PR locally
If you don't have a local development environment setup, you can use Digger to test this PR:
dub run digger -- build "master + phobos#8415"
As Dennis mentioned, this should have documentation. Maybe a documented unit test. The one you added would serve well IMO.
Otherwise LGTM.
I took the liberty of rebasing this, adding a comment to the function and solving the buildkite failure.
@ibuclaw @dkorpel could please take a look?
Why not a Ddoc comment though?
@dukc I simply followed the style that is currently present. But I made it a ddoc comment now.