[Issue 7872] dmd should warn if `printf` is used on D strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 14 22:18:01 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7872
--- Comment #6 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-04-14 22:18:48 PDT ---
(In reply to comment #3)
> (In reply to comment #1)
> > In D string literals are zero-terminated. So this run correctly:
> >
>
> If documentation
> (http://www.prowiki.org/wiki4d/wiki.cgi?action=browse&id=DanielKeep/TextInD&oldid=StringsInD)
> is not mistaken string literals are zero-terminated in DMD, thus it is
> compiler-specific feature.
I just found that here (http://dlang.org/interfaceToC.html) is written that
they actually are zero-terminated in D.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list