www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Import conflicts using phobos

reply Paolo Invernizzi <arathorn NOSPAM_fastwebnet.it> writes:
Hi all,

I've not understood if there's a way of resolving that kind of conflicts 
or we must wait Walter to fix phobos...

How to use writefln and rename in the same module (for example)?

private import std.file;
private import std.stdio;

int main(char[][] arggg) {

     writefln("aaa");
     rename("aa","bb");
     return 0;
}

dmd prova.d
dmd\bin\..\src\phobos\std\file.d(230): function std.file.rename 
conflicts with std.c.stdio.rename at 
dmd\bin\..\src\phobos\std\c\stdio.d(190)

Thanks a lot.
---
Paolo
Jun 20 2006
parent reply "Derek Parnell" <derek psych.ward> writes:
On Wed, 21 Jun 2006 11:21:34 +1000, Paolo Invernizzi  
<arathorn NOSPAM_fastwebnet.it> wrote:

 Hi all,

 I've not understood if there's a way of resolving that kind of conflicts  
 or we must wait Walter to fix phobos...

 How to use writefln and rename in the same module (for example)?

std.file.rename("aa","bb"); -- Derek Parnell Melbourne, Australia
Jun 20 2006
parent Paolo Invernizzi <arathorn NOSPAM_fastwebnet.it> writes:
Thanks Derek, stupid me! ;-P

Paolo


Derek Parnell wrote:

     std.file.rename("aa","bb");

Jun 20 2006