|
From: | John O Goyo |
Subject: | [Gm2] Re: exception examples |
Date: | Thu, 10 Jul 2008 11:43:42 -0400 |
User-agent: | Thunderbird 2.0.0.12 (X11/20080213) |
Gaius Mulley wrote:
Hi, I've added some exception examples into testsuite/gm2/iso/run/pass. except2.mod # ISO Modula-2 exception example code except.c # GNU C implementation of the same code except3.cpp # C++ implementation of the same code
I only build the C and gm2 portions. Will this be detected or will this C++ test always fail.
john
it looks as if gm2 will follow the C++ mechanics (internally to GCC - rather than the longjmp/setjmp solution). As such if there are any C++ programmers on the list (who have also used ISO M2 exception handlers) - I'd value you checking the except3.cpp to ensures that it is semantically the same and that the C++ code is sensible. It certainly gives the same output as except.c. regards, Gaius
[Prev in Thread] | Current Thread | [Next in Thread] |