Thread overview |
---|
September 10, 2006 [Issue 342] New: Please add "import std.stdio;" to object.d and remove extern(C) printf; | ||||
---|---|---|---|---|
| ||||
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@digitalmars.com ReportedBy: aarti@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. -- |
September 10, 2006 [Issue 342] Please add "import std.stdio;" to object.d and remove extern(C) printf; | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=342 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #1 from smjg@iname.com 2006-09-10 18:58 ------- Patches have been posted here: http://tinyurl.com/e9efj Somewhere in the same thread is a follow-on from this patch to fix bug 64 as well. -- |
December 17, 2006 [Issue 342] Please add "import std.stdio;" to object.d and remove extern(C) printf; | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=342 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Linux |All Platform|Other |All Flag| |d1.0blocker? ------- Comment #2 from smjg@iname.com 2006-12-16 20:53 ------- For a moment I'd forgotten that this had already been filed here! Should object.d import the whole of stdio, or only writef and writefln? I was about to propose using public import std.stdio : writef, writefln; There may be people who still want to use printf regardless, but they can import it. Just put it back in std.c.stdio where it belongs. There's no reason that D should make the printf antique more readily accessible than all other library features. See also issue 689. -- |
May 26, 2009 [Issue 342] Please add "import std.stdio;" to object.d and remove extern(C) printf; | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=342 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug@yahoo.com.au Resolution| |WONTFIX --- Comment #3 from Don <clugdbug@yahoo.com.au> 2009-05-26 04:27:52 PDT --- printf() is fixed in D2, and will never be fixed in D1. Time to close. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation