I've added a comment to the bug tracker. I suggest to keep the bug marked as WontFix or Invalid. Lukas 2009/10/19 Gary Chambers <gazzaguru2@btinternet.com>:
Then there are so many string classes now! Still, a good idea, got well bitten by the problem twenty years ago (Smalltalk V/DOS)... took a good day to discover the problem!
Regards, Gary
----- Original Message ----- From: "Niko Schwarz" <niko.schwarz@googlemail.com> To: <pharo-project@lists.gforge.inria.fr> Sent: Monday, October 19, 2009 4:48 PM Subject: [Pharo-project] Immutable strings
Hello list!
I would like to propose the compiler spit out immutable strings as string literals. I'd like to do this by making a subclass of classical strings which throws error messages when it is attempted to change the string.
The beginning of this discussion happened in the bug tracker, please see http://code.google.com/p/pharo/issues/detail?id=1332.
I completely agree with Toon: String literals should be immutable. This can be done with almost no speed impact and would only break code that quite honestly deserves to break.
My 2 cents.
Regards,
Niko
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Lukas Renggli http://www.lukas-renggli.ch