RE: [Dev-C++] Constructor and Destructor
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Hossein H. <ult...@em...> - 2003-07-11 10:51:47
|
Dear Ioannis, > Btw I am not so sure what you have understood, but I have the sense that you > understood wrong things. Calling a member function using a pointer not > pointing to an object has undefined behaviour. Provided that lifetime of the pointing object is ended. Consider the following line of citation I had made from the Standard: > > pb->f(); //undefined behavior, lifetime of *pb has ended Let me know if I haven't still got the point you had meant. Regards, --Hossein -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |