var.init change
Robert Fraser
fraserofthenight at gmail.com
Wed Sep 5 13:54:33 PDT 2007
Walter Bright Wrote:
> Here's a link to the whole thread:
>
> http://www.digitalmars.com/d/archives/digitalmars/D/Public_outcry_against_new_.init_behaviour_55158.html#N55170
Any chance of getting the old behavior back as a different property? For example:
int x = 42;
assert(int.init == 0);
assert(x.init == 0);
assert(x.starting == 42);
For what it's worth, I agree that the new .init does increase inconsistency, but the old behavior had its uses, so it's a shame it went away forever.
More information about the Digitalmars-d
mailing list