const attribute makes whole element const?

monarch_dodra monarchdodra at gmail.com
Mon Sep 10 03:02:03 PDT 2012


On Monday, 10 September 2012 at 09:54:46 UTC, Jonathan M Davis 
wrote:
> 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

Oops, sorry. TY.


More information about the Digitalmars-d-learn mailing list