string types: const(char)[] and cstring

Myron Alexander someone at somewhere.com
Fri May 25 22:32:42 PDT 2007


Myron Alexander wrote:
> Howard Berkey wrote:
>> Nice idea.  I am only concerned that people will see "cstring" and 
>> think "null-terminated "C" string".  Not that that should be a 
>> deciding factor by any means of course.
>>
> 
> 
> When I first read Walter's post, I also thought null-terminated strings.
> 
> I even had it as an alias for toString (converting C string to char[]) 
> as a means to get around the name conflict with Object but I shortened 
> it to "str".
> 
> I cannot think of another name but "cstring" will cause confusion and 
> defeats the "obvious" rule.

Here's a possibility:

Instead of cstring, wstring, dstring - charstr, widestr, dblstr.



More information about the Digitalmars-d-announce mailing list