Re:Stack unwinding in Rust
by FreeFull on Friday October 31, 2014 @09:16PM
(#8541880)
Rust doesn't have the concept of a constructor build into the language, although often you'll see a type have a "new" method, to create an instance of it. I think exceptions interact badly with destructors too, though, and Rust does have those.
In C++, exceptions can cause problems with dangling pointers if used in constructors, I wouldn't be surprised if the same were true in Rust.