January 16, 2012 std.math and std.mathspecial | ||||
---|---|---|---|---|
| ||||
import std.math; import std.mathspecial; import std.stdio; void main(string[] args) { writeln(erf(0.5)); } I was writing on my phone, so I couldn't add some code. And, my pc browser won't load digitalmars.D html page, either, so I post this again here. It was okay before... maybe server is too slow? If I compile this code, I get this message. D:\D\dmd2\windows\bin\mathconflict.d(7): Error: std.mathspecial.erf at D:\D\dmd2 \windows\bin\..\..\src\phobos\std\mathspecial.d(273) conflicts with std.math.erf at D:\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(1923) and if I try using deprecated one... import std.math; import std.stdio; void main(string[] args) { writeln(erf(0.5)); } I get this. D:\D\dmd2\windows\bin\mathconflict.d(6): Error: function std.math.erf is deprecated I think deprecated function should not cause conflict. |
Copyright © 1999-2021 by the D Language Foundation