MathGroup Archive 1991

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

Search the Archive

Re: data structure equivalent ops


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.







  • 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