Array slicing
Hasan Aljudy
hasan.aljudy at gmail.com
Thu Dec 14 15:16:17 PST 2006
Anders F Björklund wrote:
> Hasan Aljudy wrote:
>
>> printf is not a part of D.
>> use writef instead.
>
> The C library is a part of D, so using std.c.stdio.printf
> is OK as long as toStringz is used. Maybe std.stdio.writef
> would be easier to use, but both alternatives are valid D.
>
> --anders
I think it's better to just say printf is not a part of D, to not
confuse new comers.
If you must be politically correct, printf is a part of the C standard
library, which is available through the std.c package, but its use is
not recommended.
More information about the Digitalmars-d-learn
mailing list