"bearophile" <[email protected]> wrote in message news:[email protected]... > I'd like to ask this to be valid, to shorten my code: > alias immutable imm; > Is this silly? >
Yes =)
immutable might be more characters than you want to type, but at this point
it's extremely unlikely it will be changed or a synonym will be added.
You can always define something like this:
template imm(T) { alias immutable T imm; }
imm!int cantchangethis = ...;
