3 ms·
The C++ class would require the user to constantly remember it has to be passed by reference, not by value. D making the class a reference type means the user c
by WalterBright 4y ago
The C++ class would require the user to constantly remember it has to be passed by reference, not by value. D making the class a reference type means the user cannot mix them up.
It has worked well from the beginning, it is not a mistake.