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.
If that can't be done, then could somebody please give me tips on writing generalized subroutines for reading and writing typed files?
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.
TIA.
[Hrm... Or maybe I'll do it in Ada, with generics. But, aside from knowing Pascal which is from the same family, I know nothing of Ada.]