View mode: basic / threaded / horizontal-split · Log in · Help
November 05, 2004
atof conflicts
D:\project\dmd\bin\..\src\phobos\std\string.d(44): function std.string.atof conf
licts with std.math2.atof at D:\project\dmd\bin\..\src\phobos\std\math2.d(772)
November 06, 2004
Re: atof conflicts
no@where.com wrote:
> D:\project\dmd\bin\..\src\phobos\std\string.d(44): function std.string.atof conf
> licts with std.math2.atof at D:\project\dmd\bin\..\src\phobos\std\math2.d(772)

I don't think it's a bug.

If you give a snippet of code, we can probably tell you what you need to 
 do to get rid of the conflict.

You probably need to add something like this:

alias std.string.atof atof;

or

alias std.math2.atof atof;


-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
November 06, 2004
Re: atof conflicts
"J C Calvarese" <jcc7@cox.net> schrieb im Newsbeitrag
news:cmja16$2kfm$1@digitaldaemon.com...
> no@where.com wrote:
> > D:\project\dmd\bin\..\src\phobos\std\string.d(44): function std.string.atof conf
> > licts with std.math2.atof at D:\project\dmd\bin\..\src\phobos\std\math2.d(772)
>
> I don't think it's a bug.
>
> If you give a snippet of code, we can probably tell you what you need to
>   do to get rid of the conflict.

It looks like a botched error message is the first problem.

std/string.d:44
# extern double atof(char *);

std/string.d:96
# real atof(char[] s);

std/math2.d:772
# real atof(char[] s);

The second bug is that either the std.math2 or std.string atof(char[]) should be removed and
aliased to the remaining atof(char[]).


Thomas
Top | Discussion index | About this forum | D home