Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!nuchat!lobster!urchin!Rajah.Dodger From: Rajah.Dodger@urchin.fidonet.org (Rajah Dodger) Newsgroups: comp.lang.modula2 Subject: Re: POINTER/LINKED LIST HELP? Message-ID: <10726.27FA98F3@urchin.fidonet.org> Date: 3 Apr 91 18:16:54 GMT Organization: Urchin (Two Wheelers) - Unix <--> Fido gateway, Houston,TX Lines: 11 I may be naive here (I haven't done any serious programming in three years) but I see no reason why you couldn't have a "generic pointer". What you would need to do would be to make it a pointer to some (arbitrarily chosen) data type that is large enough to hold the largest item your programs would want to point to. Then you dereference and do a type cast. I can see a few problems with this, but it looks like a reasonable start. The alternative option is to use pointer to CHAR, get the address of the item pointer to and then do your own memory magic to pull it up as the right type information. Any way you slice it, you're going to have to do some type casting.