David Piepgrass:

This use case is pretty complex, so if I port this to D, I'd probably just cast away const/immutable where necessary.

You are not the first person that says similar things. So D docs need to stress more than casting away const/immutable in D is rather more dangerous than doing the same thing in C++.

Bye,
bearophile

Reply via email to