copying const

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 24 12:45:11 PDT 2015


On Wednesday, 24 June 2015 at 19:41:54 UTC, Freddy wrote:
> I was surprised when this happened, is it a bug or a feature?

Feature, overwriting const or immutable data would violate the 
promise that it never changes. Saving a struct over another 
struct is just another way of overwriting the data.


More information about the Digitalmars-d mailing list