Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!cornell!uw-beaver!milton!ogicse!pdxgate!qiclab!percy!m2xenix!puddle!p25.f506.n106.z1.fidonet.org!Jon.Guthrie From: Jon.Guthrie@p25.f506.n106.z1.fidonet.org (Jon Guthrie) Newsgroups: comp.lang.modula2 Subject: Re: POINTER/LINKED LIST HELP? Message-ID: <787.27FC2FF2@puddle.fidonet.org> Date: 3 Apr 91 01:30:19 GMT Article-I.D.: puddle.787.27FC2FF2 Sender: ufgate@puddle.fidonet.org (newsout1.26) Organization: FidoNet node 1:106/506.25 - Fulcrum's Edge, Spring TX Lines: 22 On a message of 31-Mar-91, 2hnenature@kuhub.cc.ukans.edu (1:105/42.0) Said: > Is it possible to specify a general POINTER type that can point to > any data type? I assume it must be possible since the function > NEW(x) allows x to be a pointer to any type of data. Yes, SYSTEM exports the data type ADDRESS which is assignable to (and from) any pointer type. (Check whatever documentation you have for more details.) As for the assumption that it must be possible based on the NEW() procedure, I'd have to say that you're on thin ice. Standard procedures are allowed to break rules in a variety of ways, and may, in fact, be implemented as additions to the syntax of the language rather than as procedures. -- uucp: uunet!m2xenix!puddle!106!506.25!Jon.Guthrie Internet: Jon.Guthrie@p25.f506.n106.z1.fidonet.org