Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!psuvax1!rutgers!soleil!mlb.semi.harris.com!trantor.harris-atd.com!jedi!mvm From: mvm@jedi.harris-atd.com (Matt Mahoney) Newsgroups: comp.lang.c++ Subject: Re: Use of this in C++ compared to self in Smalltalk Message-ID: <6058@trantor.harris-atd.com> Date: 17 Apr 91 18:58:36 GMT References: <0094742D.B7B638A0@uno.edu> Sender: news@trantor.harris-atd.com Reply-To: mvm@jedi.UUCP (Matt Mahoney) Organization: CAE Design Center, Harris Corp., Melbourne, Fl. Lines: 23 In article <0094742D.B7B638A0@uno.edu> jncs@uno.edu writes: >Example : can I write : > > int C::foo (...) > { > ... > this.message > ... > } > >where "message" is a virtual function declared in class C. The correct syntax is: this->message(); or simply message(); -------------------------- Matt Mahoney, mvm@epg.harris.com #include