std.string will get the boot
Simen kjaeraas
simen.kjaras at gmail.com
Sun Jan 31 00:34:03 PST 2010
Lionello Lunesu <lio at lunesu.remove.com> wrote:
> I miss typedef. I think this is exactly what typedef was intended
> for. Perhaps we can reintroduce it as a 'short hand' for such a
> struct?
struct Typedef( T ) {
T payload;
alias payload this;
}
Usage:
alias Typedef!( int ) myInt;
Is this what you want?
> By the way, ASCII is a subset of UTF-8 (that was the whole
> point), so there's no reason why 'char[]' can't still be used for
> ASCII strings, right?
AS far as I have understood (I am no Unicode guru), in some locales
toUpper and toLower map ASCII chars to non-ASCII chars. So ASCII being a
strict subset of UTF-8 is not always true.
--
Simen
More information about the Digitalmars-d
mailing list