On Wednesday, March 5, 2003, at 05:59 PM, Mark Wilden wrote:


From: "Sean Charles" <[EMAIL PROTECTED]>

try this...skeletal but you should get the idea...it shows a general callback that returns void and takes a UInt16 and a Char* in this case.. .


I know you're trying to help, Sean, but it would be good to restrict this
list to Palm issues, and not get into C++.
<FLAME>
Well, excuse me for trying to help, but considering the guy is using C++ to write a Palm application then I don't see the problem. Sure, we can stonewall him or call him a moron for asking dumb questions but that's not the standard I see on this forum. I have had a bad day and your attitude is just not called for I think. OK, let's restrict this to Palm Issues. We don't do C++, let's not do C, CASL, BASIC, or any other language. Hey, let'
s rename this the palm-not-developer-form instead.


What if he gives up and the greatest Palm program ever written fails to see the light of day because he fell at the last hurdle because nobody would help him? Yup. Humans are indeed PITA. As i was explaining to somebody just the other day, if you removed people from the planet it would actually be a good place to live.

I shall continue to help people here so long as it is intelligently asked and not too far off topic.
</FLAME>



((*this).*sg_FnTable[fnIDToCall])( arg1, arg2P );

Having said that <g>, I find the following a tiny bit more readable:


(this->*sg_FnTable[fnIDToCall])( arg1, arg2P );

I never did because it confuses people to see -> and *, it did me! My way,
 the brackets delineate the works and you know what you are about.

Never did understand why 'this' is necessary.

The 'this' is necessary because the 'message send' and the 'message receiver' can both be specified. In my game I am nearly finishing still, I have calls where the 'this' is in fact some other object, not the object currently in execution scope. Obv. you have to send the call somewhere and if it ain't this it's that! Or the other...



Sean (Still smoking) Charles



-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to