Re: data structure equivalent ops
- To: mathgroup at yoda.ncsa.uiuc.edu, davidd at cs.washington.edu (David Doll)
- Subject: Re: data structure equivalent ops
- From: jacobson at cello.hpl.hp.com
- Date: Fri, 22 Feb 91 08:41:42 PST
If you really need pointer functionality, you can hack it by creating new symbols. For example, suppose you want a record with components x, y, and link, where link "points to" another such record. You allocate the record like this name = Unique[] name[] = {xexpression,yexpressioin,someothername} You dereference with somename[] You can automatically get the functionality of lisp property lists by just name[propertyname] = ... -- David Jacobson P.S. I haven't actually tried the above code.