Mail Archives: djgpp/1997/02/02/13:59:28
On Sun, 02 Feb 1997 01:06:46 GMT, billlanam AT california DOT com (Bill Lanam)
wrote:
>On Sat, 01 Feb 1997 12:04:11 GMT, mrkite AT cyberjunkie DOT com (Marco Salvalaggio)
>wrote:
>
>> [snip..]
>> try
>> {
>> f2();
>> }
>> catch( MyExcept& x ) // This one not ok. The program aborts.
>if changed to catch '(MyOtherExcept& x)' it then works.
>
>> [snip..]
Yes Bill, I know that. But the point is that I would like to catch it as a
base class object since in my original app. I don't know exactly what kind
of particular exception will be thrown, that's why I've created my own
hierarchy of exception classes. I think that this is one of the most
important task accomplished by exception mechanism, at least it saves me
quite a lot of coding.
At the moment I don't remember where, but I've read that the djgpp
implementation of exceptions is under development and maybe this feature is
still missing. If so I have to wait before switch from Borland to djgpp.
>
> Bill Lanam
Thanks for your reply, anyway.
Marco.
- Raw text -