[Aldor-l] Questions
Gabriel Dos Reis
gdr at cs.tamu.edu
Tue Nov 13 02:26:03 EST 2007
On Tue, 13 Nov 2007, Martin Rubey wrote:
| immutable literals. Hm, aren't the other literals immutable, too? It's only
| that string literals are the only ones where one usually "thinks" that one can
| modify them. But why can't I set a certain bit in an AldorInteger?
If you could invidually set each limb in a multiprecision integer
representation (as you do for strings), you would run into the same
issue. Java solves this issue for strings by having two classes: one
for immutable string, and one for mutable strings.
-- Gaby
More information about the Aldor-l
mailing list