digitalmars.D.bugs - D Strings vs C++ Strings
- Vathix (4/4) Jun 03 2004 In cppstrings.html under "Conversions to C Strings", the D example is
- Mike Swieton (12/16) Jun 03 2004 Agreed. The documentation could be improved. May I suggest that the docs...
- John Fletcher (4/12) Jun 14 2004 There is a wiki for D. Its at this location:
In cppstrings.html under "Conversions to C Strings", the D example is misleading. While the quote "In D, strings can be implicitly converted to char*" is true, char* isn't necessarily a [null-terminated] C string. It should use toStringz() IMHO.
Jun 03 2004
On Thu, 03 Jun 2004 21:34:57 -0400, Vathix wrote:In cppstrings.html under "Conversions to C Strings", the D example is misleading. While the quote "In D, strings can be implicitly converted to char*" is true, char* isn't necessarily a [null-terminated] C string. It should use toStringz() IMHO.Agreed. The documentation could be improved. May I suggest that the docs like somewhere to a wiki? I think it'd be great to allow readers to post clarifications and examples, and a wiki would be a good way to do that easily. I like the docs on php.net because they have a message board built into the documentation pages. It would be better than pestering Walter to update the necessarily imperfect documentation. Mike Swieton __ They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance. - Terry Pratchett
Jun 03 2004
Mike Swieton wrote:On Thu, 03 Jun 2004 21:34:57 -0400, Vathix wrote:There is a wiki for D. Its at this location: http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage JohnIn cppstrings.html under "Conversions to C Strings", the D example is misleading. While the quote "In D, strings can be implicitly converted to char*" is true, char* isn't necessarily a [null-terminated] C string. It should use toStringz() IMHO.Agreed. The documentation could be improved. May I suggest that the docs like somewhere to a wiki? I think it'd be great to allow readers to post clarifications and examples, and a wiki would be a good way to do that easily.
Jun 14 2004