🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1899

Re: POINTER/LINKED LIST HELP?

#1899
From: Jon Guthrie
Date: Wed, 03 Apr 1991 01:30
22 lines
1397 bytes
 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
Technical Details
Message-ID: <787.27FC2FF2@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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