Set var0:'var1, var1:'var2, var2:'var3, var3:'var4
var0[x] => var4[x]
In other words, it re-evaluates the array name until it
can no longer be evaluated.
This does not seem to be documented and I don't see
the rationale for this.
I think the multiple evaluation is not a problem of array names, but of subscripted variable names. Maxima has the undocumented property 'nonarray to handle the names of subscripted variables different from array names.
(%i1) var0:'var1$ var1:'var2$ var2:'var3$ var3:'var4$
This is the default behavior:
If we declare the variable var0 to be a 'nonarray, we get:
Unfortunately, the function featurep does not know this property:
Perhaps we should document the behavior of subscripted variable names and the property 'nonarray, which prevents the multiple evaluation. In addition we could extend the function featurep to handle the property 'nonarray.
Documentation about the property nonarray has been added in Expressions.texi revision 1.71.
Closing this bug report as fixed.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.