const attribute makes whole element const?

Jonathan M Davis jmdavisProg at gmx.com
Mon Sep 10 02:54:42 PDT 2012


On Monday, September 10, 2012 11:49:48 monarch_dodra wrote:
> It appears that when writting:
> tests[4] = Test("Foobar");
> It *looks* like compiler is eliding the opAssign/CC completely,
> opting for a bit copy, which is illegal.

As I believe was mentioned elsewhere in this thread, that's due to

http://d.puremagic.com/issues/show_bug.cgi?id=6906

AA's work fine for the most part, but they're really quite buggy when it comes 
to corner cases. A new implementation is being worked on, but it's slow in 
coming.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list