std.math conflicts with std.mathspecial

F i L witte2008 at gmail.com
Tue Jan 17 17:09:55 PST 2012


Whoops, forgot "std" before "mathspecial":

    import std.math;
    import std.mathspecial;

    void main()
    {
        writeln(std.mathspecial.erf(0.5));
    }

or you could do:

    import std.math;
    import std.mathspecial : erf;

    void main()
    {
        writeln(erf(0.5));
    }




More information about the Digitalmars-d mailing list