how to use a subscripted variable in a "depends" statement



On 10/29/11, Ether Jones <maxima at etherjones.us> wrote:

> Is there a way to use a subscripted variable in a "depends" statement?

No, to the best of my knowledge.

depends(foo, x) puts its data (the dependency on x) on the property list of foo.
(You can see that with :lisp (symbol-plist '$foo) after depends(foo, x).)
That doesn't work for subscripted variables, because they are not symbols
and therefore don't have a property list.

There are various declarations which make use of the symbol property
list, which therefore don't work for subscripted variables.
I think it would be a good idea to generalize all of those declarations
in some way, so that they work equally well for subscripted and
unsubscripted variables.

best

Robert Dodier