Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 29 Jan 2004 10:22:21 +0100
Local: Thurs, Jan 29 2004 4:22 am
Subject: internal exception handlers
We have some places in code, where we have to cleanup, if an internal Attached is a test program with some macros allowing code like: TRY { some() { The actual implementation would need either an explicit Parrot_Interp Some questions: leo
[
typedef struct e { } exc; exc * exceptions; #define TRY \ #define CATCH \ #define ENDTRY \ #define THROW(e) \ #define RETHROW \ void run(int e) { } int main(int argc, char *argv[]) { int i = 1; if (argc > 1) i = atoi(argv[1]); puts("S"); TRY { run(i); } CATCH { puts("exception"); } ENDTRY; puts("E"); return 0; }
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||