Neil Santos wrote:
Isn't there any (presumably non-standard) way of dereferencing Pointer variables? The reason I ask is because I need information on the type of variable whose address a Pointer variable contains. Said type will vary, and cannot be known until runtime.
Could you give a code example of what you are trying to do?
Or should I just skip both of these and just write an interface object, and implement read/write mechanisms for each structure I intend on keeping in a stream? I'd rather avoid this (for it beats the whole point of OO, IMO), but I'd do it if it can't be avoided.
... and a code example for that solution, too? I don't quite understand what you mean here. What methods should that interface object have, and where/how do you want to call them?
Yours,
Markus