Recently I was using Nim with a hybrid C++ app using the handy `cppstl` 
library. When I tried using the `threading/channels` I was running into either 
double free's or memory leaks. I think it was due to a combination of 
`wasMoved` and C++ destructors.

I'm curious if it's possible to get C++ objects to play nicely with `wasMoved` 
with the right dtors / move / copy constructors.

Obviously it's easier to do it with pure Nim objects, which is what I did. It 
was a bit tedious to convert back and forth, and I'm curious if it'd be 
possible. 

Reply via email to