|
From: Ioannis V. <no...@ya...> - 2001-10-22 11:27:50
|
If i recall correctly, you have Special Edition. Take a look at 10.2.1 on page 224. But if you notice in my examples even wrong data members are being created! Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Jason Hardman > Sent: Monday, October 22, 2001 12:10 AM > To: Dev-C++ > Subject: Re: [Dev-C++] Strange effect >=20 >=20 > Is this just your belief or can you prove that this is the=20 > case from some external referece or knowledgable party (other=20 > than yourself)? >=20 > As I have been given to understand it the case of there only=20 > being one set of methods existing in memory for a class, and=20 > then each method being passed a hidden pointer to the object=20 > is the true case. Hence the existence of the "this" pointer=20 > for use in a class. I would also like to mention that the way=20 > you would have it is unecessarily wasteful of resources. The=20 > issue becomes more complex with virtual methods and such, but=20 > I won't go into that right now. >=20 > I wouldn't mind if someone else who is reading this=20 > discussion, and is knowledgable about the subject, putting us=20 > both on the correct path. >=20 > Jason. >=20 > ----- 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 >=20 >=20 > Yes, when we create an object all member functions are being=20 > (re)created for that particual object. >=20 >=20 >=20 > >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? >=20 >=20 > No. >=20 >=20 >=20 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 |