std.math conflicts with std.mathspecial
Jun
blings at naver.com
Tue Jan 17 16:16:39 PST 2012
import std.math;
import std.mathspecial; import std.stdio; void main(string[]
args) {
writeln(erf(0.5));
}
Well... I was wating for any reply about this but I got nothing..
so I decided to re-post this. 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.
More information about the Digitalmars-d
mailing list