|
From: Jason H. <jas...@bt...> - 2001-10-21 22:10:29
|
Is this just your belief or can you prove that this is the case from some external referece or knowledgable party (other than yourself)? As I have been given to understand it the case of there only being one set of methods existing in memory for a class, and then each method being passed a hidden pointer to the object is the true case. Hence the existence of the "this" pointer for use in a class. I would also like to mention that the way you would have it is unecessarily wasteful of resources. The issue becomes more complex with virtual methods and such, but I won't go into that right now. I wouldn't mind if someone else who is reading this discussion, and is knowledgable about the subject, putting us both on the correct path. Jason. ----- Original Message ----- From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Sent: Sunday, October 21, 2001 3:14 PM Subject: RE: [Dev-C++] Strange effect Yes, when we create an object all member functions are being (re)created for that particual object. >do you believe that there are only a single set of methods for every object of a type, and the objects only contain the data? No. |