Topic: Saving objects : member function pointers
Author: giszter@cauda-equina.ai.mit.edu (Simon Giszter)
Date: 30 Jun 92 14:31:11 GMT Raw View
I would like to be able to save objects which have dynamically modified
pointers and pointers to member functions in such a way that on retrieval
the total software 'state' is preserved. I'm using zortech c++ 3.01 .
At one point in ZTC++ member function addresses were integers and relative
addresses within the object. This is no longer (at least as far as the compiler
syntax checking is concerned) the case and clearly
there are many ways to implement pointers to members. My problem is: can they
be saved simply? and: can other pointers be saved without rearranging the code
so I effectively maintain my own vtables etc. ?
In effect, is there an agreed upon _portable_ convention for this sort of
thing that I can read about somewhere?
thanks,
Simon