const attribute makes whole element const?

Timon Gehr timon.gehr at gmx.ch
Sat Sep 8 16:18:55 PDT 2012


On 09/09/2012 01:16 AM, Namespace wrote:
> Why fail this code?
> without "const" on "Name" it works fine.
>
> http://dpaste.dzfl.pl/9fa0986a

const fields cannot be written to. This includes the case when the
entire struct is written to at once.


More information about the Digitalmars-d-learn mailing list