private alias ... isn't [~OT]

Anders F Björklund afb at algonet.se
Sun Jun 25 00:51:38 PDT 2006


Lionello Lunesu wrote:

> And I think it wouldn't hurt if we include the following aliases in 
> Phobos, Ares:
> 
> alias char[] string;
> alias wchar[] wstring;
> alias dchar[] dstring;

I think Walter preferred showing the array nature of strings. Then again 
he also preferred showing the bit nature of bools, things change... :-)

Maybe the time has come for offering a more "readable" alias for it ?

I used "str" myself, partly because it was shorter and partly to avoid 
mixing it up with "std::string" in my head. (since it is not a class)

http://www.prowiki.org/wiki4d/wiki.cgi?CharsAndStrs#SuggestedTypealiases

--anders



More information about the Digitalmars-d mailing list