Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 29, 2002 conflicts in most samples: stdio.printf vs object.printf | ||||
---|---|---|---|---|
| ||||
Hello, in most D (alpha 16) sample programms stdio.printf() conflicts with object.printf() that's very anoying... When will be the fix available? I think that the problem is default importing of "object.d". Ruslanas |
January 29, 2002 Re: conflicts in most samples: stdio.printf vs object.printf | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ruslanas Abdrachimovas | Just comment out one of the printf's. "Ruslanas Abdrachimovas" <anubis@03bar.ktu.lt> wrote in message news:3C56AEA7.5070106@03bar.ktu.lt... > Hello, > in most D (alpha 16) sample programms stdio.printf() conflicts with > object.printf() that's very anoying... When will be the fix available? I > think that the problem is default importing of "object.d". > > Ruslanas > |
January 30, 2002 Re: conflicts in most samples: stdio.printf vs object.printf | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | Walter wrote:
> Just comment out one of the printf's.
>
> "Ruslanas Abdrachimovas" <anubis@03bar.ktu.lt> wrote in message
> news:3C56AEA7.5070106@03bar.ktu.lt...
>
>>Hello,
>>in most D (alpha 16) sample programms stdio.printf() conflicts with
>>object.printf() that's very anoying... When will be the fix available? I
>>think that the problem is default importing of "object.d".
>>
>>Ruslanas
>>
>>
>
>
Actually, that's OK. But if i need to import "stdio.d" it's printf() conflicts with automatically imported "object.d" printf(). That's was the major problem.
Ruslanas
|
January 30, 2002 Re: conflicts in most samples: stdio.printf vs object.printf | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | I suggest, such fix for future releases of [src/phobos/object.d] file :
remove line: extern (C) static int printf(char *, ...);
add line: import c.stdio;
Because it vould solve conflicts and phobos lib logic doesn't change.
Ruslanas
Walter wrote:
> Just comment out one of the printf's.
>
> "Ruslanas Abdrachimovas" <anubis@03bar.ktu.lt> wrote in message
> news:3C56AEA7.5070106@03bar.ktu.lt...
>
>>Hello,
>>in most D (alpha 16) sample programms stdio.printf() conflicts with
>>object.printf() that's very anoying... When will be the fix available? I
>>think that the problem is default importing of "object.d".
>>
>>Ruslanas
>>
>>
>
>
|
January 30, 2002 Re: conflicts in most samples: stdio.printf vs object.printf | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ruslanas Abdrachimovas | Yes, but commenting one of them out will fix the problem. Or you can download it again, a fixed version has been posted. -Walter "Ruslanas Abdrachimovas" <anubis@03bar.ktu.lt> wrote in message news:3C57B30C.4010402@03bar.ktu.lt... > Walter wrote: > > > Just comment out one of the printf's. > > > > "Ruslanas Abdrachimovas" <anubis@03bar.ktu.lt> wrote in message news:3C56AEA7.5070106@03bar.ktu.lt... > > > >>Hello, > >>in most D (alpha 16) sample programms stdio.printf() conflicts with > >>object.printf() that's very anoying... When will be the fix available? I > >>think that the problem is default importing of "object.d". > >> > >>Ruslanas > >> > >> > > > > > > Actually, that's OK. But if i need to import "stdio.d" it's printf() > conflicts with automatically imported "object.d" printf(). That's was > the major problem. > > Ruslanas > |
Copyright © 1999-2021 by the D Language Foundation