Lists and arrays with the same name



On Tue, Aug 10, 2010 at 8:10 AM, Stefano Ferri <ferriste at gmail.com> wrote:

> Sometimes in my codes I use to convert arrays to lists re-assigning
> the same name, but it causes me some troubles. Most problems come out
> because when b is a list it has continuous subscript indices, while as
> an undeclared array this is not necessary true.

Maxima is happy to let you create different objects
with the same name, but then it doesn't handle them
consistently. This is a bug. At this point the only advice
is just to avoid creating things with the same name
(although it can happen inadvertently all the same, e.g.
when a function argument coincides with the name of
a declared array).

Sorry about that. Every now and then I think about
how Maxima's treatment of subscripted objects could
be revised. I haven't gotten very far.

best

Robert Dodier