hello volker,
> foo works when not compiled, but not when compiled. can someone explain?
there are many bugs in the maxima->lisp translation code.
the problem with array references is one of them.
i believe that problem came up on the mailing list a while ago;
i don't remember the resolution. if you come up with a solution,
i would be very interested to hear about it.
sorry that i can't be more helpful,
robert