[Issue 342] New: Please add "import std.stdio; " to object.d and remove extern(C) printf;

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 10 12:33:00 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=342

           Summary: Please add "import std.stdio;" to object.d and remove
                    extern(C) printf;
           Product: D
           Version: 0.166
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: aarti at interia.pl


printf completely does not fit as a D standard console output command. It only
polutes global namespaces. IMHO it's presents is a big trap for novice users -
it's easy to pass to function not null terminated char[].

In contradict writefln and writef is much nicer to use and should be default.


-- 




More information about the Digitalmars-d-bugs mailing list