Click here to Skip to main content
15,908,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Member function pionters in C++ Pin
CPallini12-Sep-11 3:19
mveCPallini12-Sep-11 3:19 
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric12-Sep-11 3:50
Erudite_Eric12-Sep-11 3:50 
GeneralRe: Member function pionters in C++ Pin
CPallini12-Sep-11 4:03
mveCPallini12-Sep-11 4:03 
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric12-Sep-11 4:08
Erudite_Eric12-Sep-11 4:08 
QuestionRe: Member function pionters in C++ Pin
CPallini12-Sep-11 4:25
mveCPallini12-Sep-11 4:25 
AnswerRe: Member function pionters in C++ Pin
Erudite_Eric12-Sep-11 4:31
Erudite_Eric12-Sep-11 4:31 
GeneralRe: Member function pionters in C++ Pin
CPallini12-Sep-11 4:33
mveCPallini12-Sep-11 4:33 
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric12-Sep-11 6:28
Erudite_Eric12-Sep-11 6:28 
GeneralRe: Member function pionters in C++ Pin
CPallini12-Sep-11 9:41
mveCPallini12-Sep-11 9:41 
GeneralRe: Member function pionters in C++ Pin
Chris Losinger12-Sep-11 6:04
professionalChris Losinger12-Sep-11 6:04 
GeneralRe: Member function pionters in C++ Pin
TheGreatAndPowerfulOz12-Sep-11 12:23
TheGreatAndPowerfulOz12-Sep-11 12:23 
GeneralRe: Member function pionters in C++ Pin
Chris Losinger12-Sep-11 15:20
professionalChris Losinger12-Sep-11 15:20 
GeneralRe: Member function pionters in C++ Pin
TheGreatAndPowerfulOz13-Sep-11 12:54
TheGreatAndPowerfulOz13-Sep-11 12:54 
GeneralRe: Member function pionters in C++ Pin
Chris Losinger13-Sep-11 15:51
professionalChris Losinger13-Sep-11 15:51 
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric13-Sep-11 22:50
Erudite_Eric13-Sep-11 22:50 
AnswerRe: Member function pionters in C++ Pin
jschell12-Sep-11 8:30
jschell12-Sep-11 8:30 
GeneralRe: Member function pionters in C++ Pin
TheGreatAndPowerfulOz12-Sep-11 12:24
TheGreatAndPowerfulOz12-Sep-11 12:24 
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric12-Sep-11 20:39
Erudite_Eric12-Sep-11 20:39 
GeneralRe: Member function pionters in C++ Pin
jschell13-Sep-11 11:38
jschell13-Sep-11 11:38 
Fat__Eric wrote:
Yet you cant for a function pointer. You cant do (*pProc)(blah blah blah) you
have to do (this->*pProc)(blah blah blah).


I don't see that.

At best you are suggesting a shortcut that would apply to limited situations. It would require all of the following.
1. One needs a member function pointer to method X in class A.
2. Class A needs a variable of that type.
3. Class A needs to use tht variable to call itself.

I have very rarely seen a need for 1. Perhaps less that 10 times.
I have never seen a case for 2.

If I saw 3 I would suspect that there is a design flaw. I wouldn't be surprised if 2 represented a design flaw as well.

If there is any valid case for 3 then the there are so few situations that complicating the syntax just to provide a shortcut isn't worth it.
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric13-Sep-11 22:43
Erudite_Eric13-Sep-11 22:43 
GeneralRe: Member function pionters in C++ Pin
jschell14-Sep-11 13:16
jschell14-Sep-11 13:16 
AnswerRe: Member function pionters in C++ Pin
TheGreatAndPowerfulOz12-Sep-11 12:18
TheGreatAndPowerfulOz12-Sep-11 12:18 
GeneralRe: Member function pionters in C++ Pin
Erudite_Eric12-Sep-11 20:34
Erudite_Eric12-Sep-11 20:34 
GeneralRe: Member function pionters in C++ Pin
TheGreatAndPowerfulOz13-Sep-11 12:55
TheGreatAndPowerfulOz13-Sep-11 12:55 
AnswerRe: Member function pionters in C++ [modified] Pin
Stefan_Lang13-Sep-11 23:01
Stefan_Lang13-Sep-11 23:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.