array setting with objects (bug?)
bearophile
bearophileHUGS at lycos.com
Tue Mar 4 06:47:52 PST 2008
Denton Cockburn:
> easy to work with and around as is, but would be rather nice to be able to
> do what I just stated. Syntactic sugar for 2.0?
I think the current behavior is better, despite being a little less intuitive, because it's more uniform: it copies the value to all the cells. In such situation the value is the object reference, that is many references to the same object. So I think that sugar you talk about is bad for your health in the long run.
Bye,
bearophile
More information about the Digitalmars-d
mailing list