|
From: Frank V. C. <fr...@co...> - 2000-08-23 19:40:03
|
Christophe Prud'homme wrote:
>
> 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
This is a very good thing!
>
> any c++ guru?
> I miss my stroustrup badly now
>
> in ex6 I got a compilation problem whith that!
Great! We want to add the correct signatures now. I get lazy, and now
the compiler forces me to do it right. I love it.
Are you entering defects for these? That way you aren't saddled with all
the work. The other thing is that any changes made can NOT cause errors
with 2.95.2
>
> 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
>
> _______________________________________________
> Corelinux-develop mailing list
> Cor...@li...
> http://lists.sourceforge.net/mailman/listinfo/corelinux-develop
--
Frank V. Castellucci
http://corelinux.sourceforge.net
OOA/OOD/C++ Standards and Guidelines for Linux
http://PythPat.sourceforge.net
Pythons Pattern Package
|