Lionello Lunesu <[email protected]> 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