From -3714655709004464186
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,dc73f378d68ef867,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,dc73f378d68ef867,start
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 1992-06-30 03:02:42 PST
Xref: sparky comp.lang.c++:10079 comp.std.c++:645
Path: sparky!uunet!think.com!snorkelwacker.mit.edu!ai-lab!cauda-equina!giszter
From: giszter@cauda-equina.ai.mit.edu (Simon Giszter)
Newsgroups: comp.lang.c++,comp.std.c++
Subject: Saving objects : member function pointers
Summary: Is this strictly device dependent?
Message-ID: <25183@life.ai.mit.edu>
Date: 30 Jun 92 14:31:11 GMT
Sender: news@ai.mit.edu
Followup-To: comp.lang.c++
Organization: MIT Artificial Intelligence Laboratory
Lines: 14

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


