arrays of const, postblit and RefCounted

bearophile bearophileHUGS at lycos.com
Thu Nov 29 10:00:25 PST 2012


monarch_dodra:

> However, if we change "S[] arr;" to "const(S)[] arr;", then the 
> output becomes:
> //----
> 0
> 1
> 2
> 3
> 4
> //----
>
> Strange... right?

I think it's a known problem of the postblit. It was discussed 
recently.

Bye,
bearophile


More information about the Digitalmars-d mailing list