Re: GNOME GTK-- Projects



On Mon, 1 Jun 1998, John R Sheets wrote:
> I'm definitely a fan of exception handling.  Granted, I'm
> somewhat new to the UNIX end of things, but would there be any
> way to write a class to attach to stderr and parse its output,
> looking for errors?  Or is GTK+ consistent enough in its
> reporting formats to make this feasible?  Perhaps a virtual
> exception scheme would be possible, where a GTK+ error string
> would trigger an exception throw that GTK-- could pick up?  I
> don't know.  I'm just tossing ideas out like playing cards right
> now...
> 

There's no guarantee that would work, because the exceptions would have to
propogate through gtk code, which is in C, not C++. It might work with
gcc/g++, but it might not work everywhere. (it wouldn't work using
CodeWarrior on the Mac, not that that's an issue here, just an example
that it _doesn't_ always work).

Michael Hudson
Jesus College
Cambridge
mwh21@cam.ac.uk




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]