http://d.puremagic.com/issues/show_bug.cgi?id=7872
Summary: dmd should warn if `printf` is used on D strings Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: jo...@lophus.org --- Comment #0 from Jonas H. <jo...@lophus.org> 2012-04-09 08:19:32 PDT --- string foo = "john"; printf("hello %s\n", foo); doesn't work because `printf` expects a zero-terminated string. The compiler should really yield a warning here. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------