g++ - fundamentals question
Michael Matz
matz@suse.de
Tue Dec 3 05:37:00 GMT 2002
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.
More information about the Gcc
mailing list