http://www.cplusplus.com/doc/tutorial/structures/
Regarding the new de-reference operator, the tutorial uses the phrase:
exclusively with pointers to objects that have members |
Now. I'm pretty sure (not certain) that the new De-reference operator cannot be used with an array. Which means that there is some limitation to the word "Object".
Also the following sources confuse the hell out of me.
1. University of Illinois http://www.cs.uic.edu/~jbell/CourseNotes/C_Programming/OOP_CPlusPlus.html
Objects are specific instances of classes. E.g. objects are variables, classes are types. |
2. Oracle http://docs.oracle.com/javase/tutorial/java/concepts/
An object is a software bundle of related state and behavior. |
3. Code Project http://www.codeproject.com/Articles/22769/Introduction-to-Object-Oriented-Programming-Concep#Object
An object can be considered a "thing" that can perform a set of related activities. |
4. Microsoft http://msdn.microsoft.com/en-us/library/dd460654.aspx#Classes
The terms class and object are sometimes used interchangeably, but in fact, classes describe the type of objects, while objects are usable instances of classes. So, the act of creating an object is called instantiation |
So... if a struct isn't an object why do does the new de-reference item work with structs and if it *is* an object, then the majority of the above definitions have to be false in which case I don't have any definition of what an object is...
oh my head hurts.