This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]