On Wednesday, 11 July 2012 at 18:10:04 UTC, H. S. Teoh wrote:
On Wed, Jul 11, 2012 at 08:01:44PM +0200, deadalnix wrote:
...
Did you saw the proposal of feep/tgehr on #d ?It basically state that you can overload a const method with a nonconst one if : - You don't mutate any data that belong to the parent.- You are prevented to create any immutable instance of that classeor any subclasse.+1, very good, I like this idea!
It is a trade-off, but relatively nice one, IMO.