On 19 Jun 2005 at 1:50, Waldek Hebisch wrote:
[...]
Is it possible to achieve inheritance from C++ objects?
I think so. Hard, but should be doable by re-using parts of C++ compiler.
If it can be done in such a way that will not require constant re- engineering with each new gcc release, then it would be a very nice thing to have.
There are nasty semantic problems: -- C++ names are case-sensitive
This can hopefully be solved by using attributes, as Frank suggested. If not, then it is a limitation that I will be very happy to live with if it means being able to use C++ objects (which would still be a great improvement over the current situation). It would mean that things like wxWidgests would be usable with GPC for example.
-- C++ methods may be overloaded
As are Delphi Class methods (since Delphi 4.0 (released in 1998) I believe).
-- C++ methods may be inline
Don't know much about this ...
-- templates
Ditto ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/