Re: Exceptions and Message handling in/with ROOT

From: George Heintzelman (gah@bnl.gov)
Date: Thu Jan 27 2000 - 22:28:37 MET


> This proposal got me thinking, and inspired me to propose something my
> self: ABC `TException'. I know exception handling isn't all that good
> in Cint, but it should work fine in compiled code. You can get a
> suggestion for such a class, and some children, at:
> 
>    http://www.nbi.dk/~cholm/Downloads 
> 
> Look for heading "Other Downloads" and "TException class for ROOT". 
> 
> Feed-back is more then welcome. I'm afriad the i've only created a
> Makefile for Linux - sorry. 

Hi,

I think it is very possible for CINT to implement being able to catch 
in interpreted code at least a subclass of exceptions -- specifically, 
exceptions which inherit from a known, predefined baseclass which 
implements some virtual functions (so that CINT can use the C++ RTTI 
code to determine who to pass a message to. Your TException is an 
example of such a class, although I think the standard library's 
std::exception would work just as well (if not better, since it would 
let you catch exceptions thrown by standard library calls).

I recall that Masaharu agreed that this was possible and that he would 
think about it; are there any plans to implement such a scheme?

George Heintzelman



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET