"bearophile" <bearophileh...@lycos.com> wrote in message news:jgi3jn$2o6p$1...@digitalmars.com... > 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 = ...;