Article View: alt.comp.lang.learn.c-c++
Article #322why (ptr ->* funcPtr) () and not (ptr -> *funcPtr) () ?
From: kristofer stenberg
Date: Fri, 14 Jul 2000 00:00
Date: Fri, 14 Jul 2000 00:00
6 lines
1061 bytes
1061 bytes
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?
Technical Details
Message-ID:
<daLb5.765$u21.189364@nntp1.chello.se>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,3b2a10a91b8e07af,start X-Google-Attributes: gidf8d38,public X-Google-Thread: 114592,3b2a10a91b8e07af,start X-Google-Attributes: gid114592,public From: "kristofer stenberg" <kristofer.stenberg@chello.se> Subject: why (ptr ->* funcPtr) () and not (ptr -> *funcPtr) () ? Date: 2000/07/14 Message-ID: <daLb5.765$u21.189364@nntp1.chello.se> X-Deja-AN: 646473000 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@chello.se X-Trace: nntp1.chello.se 963608329 193.150.240.104 (Fri, 14 Jul 2000 22:58:49 MET DST) Organization: chello broadband NNTP-Posting-Date: Fri, 14 Jul 2000 22:58:49 MET DST Newsgroups: alt.comp.lang.learn.c-c++,borland.public.cpp.language