On Friday, 4 September 2015 at 23:26:39 UTC, Freddy wrote:
This sample doesn't compile.

That's due to the nature of structs - you would be overwriting a const field.

Const fields should probably be avoided since they aren't all that useful. You could instead do a const getter property for it without a corresponding setter, then make the actual data private.
  • My problem with const Freddy via Digitalmars-d
    • Re: My problem with const Adam D. Ruppe via Digitalmars-d

Reply via email to