I'm trying to make a generic class that can work with Delphi's "file of" feature. Being generic, it should be able to process any kind of Record structure. I can only think of passing the structure as a Pointer. Since the compiler doesn't allow a property to be of type Pointer, I must declare a public procedure like:
procedure SetStructure (aPointToStruct: Pointer);
This works fine for the sake of passing the structure as a Pointer, but unfortunately, all the structure information is missed since the procedure gets just a Pointer. I wonder if there is any way to retrieve the structure information, or to pass records (of any kind) as parameters.
This is a conceptual question, thus, I think there's no need for a code example. Nevertheless I can figure out one if you find that's really essential. In time: I apologize for my ignorance in case this a stupid or conceptually wrong question.