Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[std.math] std.math.algebraic.cbrt is not pure #10577

Open
thewilsonator opened this issue Dec 8, 2024 · 1 comment
Open

[std.math] std.math.algebraic.cbrt is not pure #10577

thewilsonator opened this issue Dec 8, 2024 · 1 comment
Labels

Comments

@thewilsonator
Copy link
Contributor

Migrated from dlang/dmd#17272

void main() pure {
    import std.math: cbrt;
    auto x = cbrt(1.0);
}

gives

Error: `pure` function `D main` cannot call impure function `std.math.algebraic.cbrt`
@0xEAB
Copy link
Member

0xEAB commented Dec 10, 2024

Likely related to #10008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants