Thread overview
D Strings vs C++ Strings
Jun 04, 2004
Vathix
Jun 04, 2004
Mike Swieton
Jun 14, 2004
John Fletcher
June 04, 2004
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.


June 04, 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

June 14, 2004
Mike Swieton wrote:

> 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.
>

There is a wiki for D. Its at this location:

http://www.prowiki.org/wiki4d/wiki.cgi?FrontPage

John