What is the definition of Object in C++ ?

J

Jerry Coffin

(e-mail address removed)>, (e-mail address removed)
says...

[ ... ]
I wonder why they excepted function definitions as objects?

Probably because a pointer to a function is a special type of thing
that's not necessarily compatible with a pointer to an object.
 
M

Matthias Buelow

Daniel said:
"An object is created by a definition (3.1), by a new-expression
(5.3.4) or by the implementation (12.2) when needed."

A function is created by a definition, so it conforms to the above
sentence as written.

Then a class would be an object, too.

When'll the C++ Meta Object Protocol arrive? :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top