Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using exception := cpp("<exception>");
- type myexception {
- realexception : exception.std.exception_ptr;
- }
- f(func) {
- try {
- func();
- } catch(...) {
- throw myexception({ exception.std.current_exception() });
- }
- }
- Main() {
- func(() => x + 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement