According to Orlando Llanes:
Ok, this is a tricky one. I need to know how to get a pointer to a
method from an object. I've tried a million and one different things, but was not able to do so. Is it even possible?
Not without tricks. If you carefully cast pointers and take into account the implicit `Self' parameter of each method and pass it explicitly when you invoke the method through the pointer, you might succeed.
The reason I need this is because I'm toying with the idea of making an object method an interrupt routine.
I suspect this is hopeless because you cannot expect the interrupted process to put the `Self' parameter into a certain register or a certain stack slot. You "must" use an "ordinary" procedure as the interrupt handler which may then call the method.
(* And, of course, you must be very careful with interrupts in 32-bit protected mode anyway. ;*)
Good luck,
Peter -- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/