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

Lionello Lunesu lio at lunesu.remove.com
Fri Jun 23 03:51:48 PDT 2006


I, too, always create an "alias char[] string"! If only to prevent the 
barely readable: char[][char[]] string2string;

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;

L.

(And, perhaps, declare a tchar to be either char or wchar, and tstring a 
tchar[], much like windows' TCHAR and LPTSTR; indeed we'd get two built 
libraries, but I think the .lib on windows should always use wchar and 
the .a on linux should always use char.)



More information about the Digitalmars-d mailing list