Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!genrad!decvax!tektronix!uw-beaver!tikal!phred!jeffp From: jeffp@phred.UUCP Newsgroups: comp.sys.hp Subject: HP Basic linked lists? Message-ID: <1084@phred.UUCP> Date: Wed, 18-Feb-87 15:32:13 EST Article-I.D.: phred.1084 Posted: Wed Feb 18 15:32:13 1987 Date-Received: Fri, 20-Feb-87 02:26:46 EST Reply-To: jeffp@phred.UUCP (Jeff Parke) Distribution: world Organization: Physio Control Corp., Seattle, WA Lines: 23 Keywords: question Does anyone out there have any clever ideas on how to get Basic 4.0 on series 200/300 machines to create and use linked lists? I don't need to dynamically allocate and deallocate the records, but would like to be able to have pointers associated with each one that will point to the predecessor and successor. In Pascal the list element would be: TYPE link = ^list_element; datatype = {bunch of integers & booleans}; list_element = RECORD one_before : link; {points to element before this} data : datatype; one_after : link; {points to next element} END; The main goal is to be able to sort a bunch of such things in BASIC and be able to store only as many as have been used (also in BASIC). {seismo!nike!uw-beaver, ihnp4!allegra!fluke} !tikal!phred!jeffp {Jeff Parke} Genie : JEFFP DELPHI : JEFFPARKE