Path: utzoo!mnetor!uunet!munnari!otc!mikem From: mikem@otc.oz (Mike Mowbray) Newsgroups: comp.lang.c++ Subject: Re: member functions Message-ID: <368@otc.oz> Date: 28 Apr 88 11:14:16 GMT References: <13200001@bucc2> Organization: OTC Development Unit, Australia Lines: 22 In article <13200001@bucc2>, brian@bucc2.UUCP says: > In C++, are pointers to the member functions stored with an object??? No. You must supply a specific object instance to invoke the pointed-to member function. > Or are function pointers stored only for virtual member functions? They are stored for all kinds of member functions. The trick for correctly storing and invoking ptrs-to-virtual-member-fns is a bit subtle. Write some example code and then look at the C-code generated. Mike Mowbray Systems Development |||| OTC || PHONE (02) 287-4104 ACSnet: mikem@otc.oz FAX (02) 287-4990 UUCP: {uunet,mcvax}!otc.oz!mikem SNAIL OTC, GPO Box 7000 CSNET: mikem@otc.oz.au Sydney 2001, Australia ARPA: mikem@otc.oz.au