This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: class hirachy problem
- From: John Love-Jensen <eljay at adobe dot com>
- To: Kristian Kratzenstein <kristian dot kratzenstein at kielnet dot net>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Tue, 06 Dec 2005 06:26:33 -0600
- Subject: Re: class hirachy problem
Hi Kristian,
I'd make fun2 a virtual method in the CAlpha, to avoid the need to do what
you are doing.
But I understand that this is a simplified example to express the concept,
and not a particular situation, so my initial response may not be relevant.
To me there is no difference between using dynamic casts, and using the
pixelTypes technique. Both suffer from lack-of-encapsulation.
Sincerely,
--Eljay