www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - atof conflicts

reply no where.com writes:
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)
Nov 04 2004
parent reply J C Calvarese <jcc7 cox.net> writes:
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/
Nov 06 2004
parent "Thomas Kuehne" <thomas-dloop kuehne.cn> writes:
"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 std/string.d:96 std/math2.d:772 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
Nov 06 2004