On Fri, Mar 11, 2011 at 12:48 PM, Graydon Hoare <[email protected]> wrote:
> The restraint part is that we have no story for handling or propagating C++
> exceptions into rust failures yet. We could do it with try/catch blocks on
> all upcalls and native calls, possibly, but it'd take some care and a degree
> of certainty that it's the right approach that I don't yet have. So there
> are no exceptions used in librustrt for now.

Sorry for the naive question, but can't you use the STL without exceptions?

It seems from the bug Brendan linked to (I skimmed, I admit) they
wanted to be able to catch memory allocation failures; it's not clear
to me whether that's a desirable goal in Rust.  (It's not clear to me
if you're out of memory whether you can write any useful
non-allocating Rust code to handle the error condition.)
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to