digitalmars.D - regexp conflicts with string
- sailormo tpts6.seed.net.tw (9/9) May 08 2006 Hello:
- Jarrett Billingsley (5/10) May 08 2006 I don't know, and to solve it, just use the full name (i.e. std.regexp.f...
- Hasan Aljudy (6/22) May 08 2006 use full qualified name, i.e. std.regexp.find and std.string.find
Hello: C:\dmd\bin\..\src\phobos\std\regexp.d(246): function std.regexp.find conflicts w ith std.string.find at C:\dmd\bin\..\src\phobos\std\string.d(272) Why?? why these two standard libraries would conflict with each other?? And how to solve it?? Thanks ^_^ And by the way, "template instance cannot resolve forward reference" what does the message mean?? I use -v to compile, and it seems fine in semantic1 and 2, but it fails in semantic3.
May 08 2006
<sailormo tpts6.seed.net.tw> wrote in message news:e3npqn$1bf5$1 digitaldaemon.com...C:\dmd\bin\..\src\phobos\std\regexp.d(246): function std.regexp.find conflicts w ith std.string.find at C:\dmd\bin\..\src\phobos\std\string.d(272) Why?? why these two standard libraries would conflict with each other?? And how to solve it??I don't know, and to solve it, just use the full name (i.e. std.regexp.find or std.string.find). This pisses me off when using std.ctype and std.stream at the same time as well, as they have a couple of conflicting names.
May 08 2006
sailormo tpts6.seed.net.tw wrote:Hello: C:\dmd\bin\..\src\phobos\std\regexp.d(246): function std.regexp.find conflicts w ith std.string.find at C:\dmd\bin\..\src\phobos\std\string.d(272) Why?? why these two standard libraries would conflict with each other?? And how to solve it??use full qualified name, i.e. std.regexp.find and std.string.find you can set aliases too, for example: alias std.string.find sfind; alias std.regexp.find xfind; and then you can just call sfind instead of std.string.findThanks ^_^ And by the way, "template instance cannot resolve forward reference" what does the message mean?? I use -v to compile, and it seems fine in semantic1 and 2, but it fails in semantic3.
May 08 2006