digitalmars.D - About proxySwap
- Dmitri (12/12) May 08 2015 This was this one time when I was storing vibe's Bson objects in
This was this one time when I was storing vibe's Bson objects in the array that I tried to use one of the mutation algorithms on it: bringToFront, and it did not work. At the time I had no idea of proxySwap but the Bson type apparently had one implemented according to the swap specialization used. After a bit of head scratching, I figured the opDispatch is making the type look like it has anything implemented, so the question is: How do I use mutation on sequences of (probably library) types with opDispatch but no proxySwap? Is wrapping the only alternative? -dmitri.
May 08 2015