Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1991

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: data structure equivalent ops

  • To: mathgroup at, davidd at (David Doll)
  • Subject: Re: data structure equivalent ops
  • From: jacobson at
  • 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


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.

  • Prev by Date: side effects from setting variables
  • Next by Date: Re: data structure equivalent ops
  • Previous by thread: data structure equivalent ops
  • Next by thread: Re: data structure equivalent ops