This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ - fundamentals question
- From: Michael Matz <matz at suse dot de>
- To: Ivan <afm at php4 dot ru>
- Cc: <gcc at gnu dot org>
- Date: Tue, 3 Dec 2002 14:36:49 +0100 (CET)
- Subject: Re: g++ - fundamentals question
Hi,
On Tue, 3 Dec 2002, Ivan wrote:
> Why fundamental types are not realized as classes in g++?
Because that wouldn't be C++.
> It could be very useful if there was ability to inherit them.
And then what? Override methods on floats for instance? Sure that might
be useful to some, but most of those things can be done with a single
member class and properly overloaded operators.
Ciao,
Michael.