Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!lll-winken!sun-barr!newstop!exodus!morocco.Eng.Sun.COM!landauer From: landauer@morocco.Eng.Sun.COM (@morocco.eng [Doug Landauer]) Newsgroups: comp.lang.c++ Subject: Re: calling C++ from C Message-ID: <11843@exodus.Eng.Sun.COM> Date: 18 Apr 91 23:12:29 GMT References: <1991Apr15.154120.13484@murdoch.acc.Virginia.EDU> <1410004@hpsciz.sc.hp.com> Sender: news@exodus.Eng.Sun.COM Organization: Sun Microsystems, Mt. View, Ca. Lines: 13 > If you want to call a member function directly, then you need to get > a pointer with the first function, then call the member function with > the pointer as its first argument. Note that this method is not portable. C++ implementations exist which pass "this" as the last parameter instead of the first. > But this is a non-standard way. So is the above suggestion. -- Doug Landauer - Sun Microsystems, Inc. - Languages - landauer@eng.sun.com Matt Groening on C++: "Our language is one great salad."