string types: const(char)[] and cstring
Anders F Björklund
afb at algonet.se
Sat May 26 01:48:26 PDT 2007
Bill Baxter wrote:
> Some people already alias char[] to string. As far as I've heard they
> haven't run into conflicts with the module name, or with people naming
> variables 'string'.
I think it would be a problem at the top of the namespace,
but it's OK if you use (for instance) "wx.common.string":
module wx.common;
alias char[] string;
Then you can do declarations like:
string string = "string";
At least that's how it has been working for the last couple
of years, and for Christopher E. Miller's dstring.d as well:
module dstring;
struct string { ... }
--anders
More information about the Digitalmars-d-announce
mailing list