ref semantics with hashes

bearophile bearophileHUGS at lycos.com
Wed May 2 15:38:07 PDT 2012


H. S. Teoh:

> I was told that this was expected behaviour.

It's trash behavior, bug-prone and not intuitive. It has the
worst qualities of both a struct and a class :-)


> Should the new AA implementation change this, so that it always
> allocates an empty AA upon instantiation?

Sounds like a possibility.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list