The two solutions are: inout(A) dup() inout { ... } A dup() const { ... }
I'm using the latter. Basically all I need is to copy any object: const, immut-, or mutable.
The two solutions are: inout(A) dup() inout { ... } A dup() const { ... }
I'm using the latter. Basically all I need is to copy any object: const, immut-, or mutable.