Article View: alt.comp.lang.learn.c-c++
Article #324Re: why (ptr ->* funcPtr) () and not (ptr -> *funcPtr) () ?
From: Horst Kraemer
Date: Fri, 14 Jul 2000 00:00
Date: Fri, 14 Jul 2000 00:00
27 lines
1259 bytes
1259 bytes
On Fri, 14 Jul 2000 20:58:49 GMT, "kristofer stenberg" <kristofer.stenberg@chello.se> wrote: > Say I have an object Dog and a method Dog::run(). > ptr is a pointer to Dog and funcPtr is pointer to run(). First I try to call > run() with (ptr ->* funcPtr) () and it works fine. Then I try (ptr -> > *funcPtr) () > and its an error. A space between -> and * shouldnt make a difference, > should it? Yes, it should. The token defining the pointer calls of member functions are ->* .* with no spaces between them. Them same as ++ is the increment operator and << is the shift left operator. i+ +; i< <1; don't work. Regards Horst
Technical Details
Message-ID:
<396f8217.421768@news.cis.dfn.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<daLb5.765$u21.189364@nntp1.chello.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,3b2a10a91b8e07af X-Google-Attributes: gidf8d38,public X-Google-Thread: 114592,3b2a10a91b8e07af X-Google-Attributes: gid114592,public From: horst.kraemer@gmx.de (Horst Kraemer) Subject: Re: why (ptr ->* funcPtr) () and not (ptr -> *funcPtr) () ? Date: 2000/07/14 Message-ID: <396f8217.421768@news.cis.dfn.de> X-Deja-AN: 646502676 References: <daLb5.765$u21.189364@nntp1.chello.se> X-Trace: fu-berlin.de 963613605 3055687 213.6.17.6 (16 [27606]) Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language