What's left for 1.0? - string class

Anders F Björklund afb at algonet.se
Fri Nov 17 08:21:26 PST 2006


Aarti_pl wrote:

> Making size of char equal to 4 bytes, and having string class, which can 
> optimize different encodings would allow to get rid of all magic... :-)

I think that using dchar and the proposed "dstring" struct* would work ?
(not that I think it becomes less magic if you hide it behind a curtain)

We need D "char" to be a 1-byte type for all future, or this won't work:
extern (C) int printf(char *, ...);

--anders

* http://www.dprogramming.com/dstring.php



More information about the Digitalmars-d mailing list