Hi,
I have a question about using condition.
I'd like to define a condition as borrowed pointer type because raising an exception with a message.
However I don't know how to use it. Is it possible?
condition! {
oops: &str -> ();
}
fn working(e: &str) {
oops::cond.raise(e);
}
fn main() {
let e = ~"invalid input";
working(e);
}
Thanks a lot.
Youngsoo Son
|
|
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev

