|
From: Christophe Prud'h. <pru...@MI...> - 2000-08-23 17:07:21
|
YAROGT again!
I cannot verify this in a C++ textbook/reference, I don't have one handy
but
say that we have
class A
{
public:
virtual void f() throw(exceptA);
}
class B : public A
{
public:
// f redefined
void f(); // is it ok?
void f() throw(exceptA); // or is it this one? or both?
}
it seems that in 2.96 the first one is rejected
the second one is the correct one
I would say that the true prototype is the second one
the first one is another function which does not throw any exceptions
any c++ guru?
I miss my stroustrup badly now
in ex6 I got a compilation problem whith that!
C.
--
Christophe Prud'homme |
MIT, 77, Mass Ave, Rm 3-243 | I respect faith, but doubt is
Cambridge MA 02139 | what gives you an education.
Tel (Office) : (00 1) (617) 253 0229 | -- Wilson Mizner
Fax (Office) : (00 1) (617) 258 8559 |
http://augustine.mit.edu/~prudhomm |
Following the hacker spirit
|