Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!welch From: welch@tut.cis.ohio-state.edu (Arun Welch) Newsgroups: comp.lang.lisp Subject: Re: pointers in Lisp Message-ID: <33722@tut.cis.ohio-state.edu> Date: 3 Feb 89 20:32:08 GMT References: <1710@cps3xx.UUCP> Organization: Ohio State Univ Computer & Info Science Lines: 25 In article <1710@cps3xx.UUCP>, artzi@cpsvax.cps.msu.edu (Ytshak Artzi - CPS) writes: > Problem: > > I need to implement (in Common Lisp) a structure with pointers. I will > use Pascal jargon to best describe it: > > element : record > data : some_type > p1 :pointer_to_element > : > : > pk :pointer_to_element > end; > Seeing as how this is lisp, why dont you just use a list? Unless your CL is incredibly inefficient, mapping over a list of 10 elements is gonna be plenty fast, and you'll probably take up less storage than the array. ...arun ---------------------------------------------------------------------------- Arun Welch Lisp Systems Programmer, Lab for AI Research, Ohio State University welch@cis.ohio-state.edu