On 05/20/2016 08:23 PM, Jack Applegame wrote:
You can just cast const away: struct A { int id = 0;this(int id) { this.id = id; } void change() const { (cast() id)++; } }
That's not a valid D program, though.
On 05/20/2016 08:23 PM, Jack Applegame wrote:
You can just cast const away: struct A { int id = 0;this(int id) { this.id = id; } void change() const { (cast() id)++; } }
That's not a valid D program, though.