Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!eecae!cps3xx!cpsvax!artzi From: artzi@cpsvax.cps.msu.edu (Ytshak Artzi - CPS) Newsgroups: comp.lang.lisp Subject: pointers in Lisp Message-ID: <1710@cps3xx.UUCP> Date: 2 Feb 89 23:53:19 GMT Sender: usenet@cps3xx.UUCP Reply-To: artzi@cpsvax.cps.msu.edu (Ytshak Artzi - CPS) Organization: Michigan State University, Computer Science Department Lines: 23 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; REM: k is a constant chosen (by me) not bigger than 10. Catch: the number of pointers 'allocated' to each variable MUST be random at the beginning of the program. Any suggestions will be appreciated . I wish to be able to (randomly) create structures with 3, 5 or 9 pointers for example. Please don't propose an array of pointers with a flag randomly chosen between 1 and 10. Itzik.