Yes, constants may contain mutable data.  But that's just as in other
languages.  It is true that you can say

l: List Integer == [1,2,3];
l.1 := 4;

but in my opinion, you are not really modifying l, but rather l.1, and that's a
different story.

And I would even need mutable constants. I want to define a powerseries

y = 1 + x * y*y

as a constant. The only thing I want a user then to do is to ask for coefficients. But in order to provide such an infinite constant I need a way to compute it without having the compiler run infinitely long.

Ralf



_______________________________________________
Axiom-developer mailing list
Axiom-developer@nongnu.org
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to