Can someone explain why this is not an error?
bearophile
bearophileHUGS at lycos.com
Thu Jul 1 09:43:33 PDT 2010
FeepingCreature:
> Type deduction is a special case. I think the above was written before we had it.
OK. Special cases in a language are often bad, and I don't think that syntax is significantly handy. So if you agree Bernard Helyer can put it in bugzilla, asking to remove this special case:
void main() {
immutable a1 = 3, b1 = "hello";
auto a2 = 3, b2 = "hello";
static a3 = 3, b3 = "hello";
const a4 = 3, b4 = "hello";
}
Bye,
bearophile
More information about the Digitalmars-d
mailing list