Re:Const and Optimization in C
by WalterBright on Monday July 25, 2016 @02:21PM
(#12160499)
> implementing both "const" and "non const" methods cause a lot of code duplications
D has an `inout` qualifier that has the effect of "transmitting" the const-ness of an argument to the return type.
- Compatibility with old libraries