ribbit243
Re:C++ and zombies: a moving question
on Friday October 31, 2014 @03:21PM (#8540595)
Consider a Movable file handle.
File fh = File(fopen("file.txt"));
foo(std::move(fh));
Using fh after foo() would yield a compile error in Rust. It does not in C++.