Re: [Pharo-project] ('a' == 'a') == true ?
Sept. 28, 2010
7:13 a.m.
+1
Well, you can save a bit more, if you scan a whole image literals and unify them. This could be userful for tidying up the image size.
Probably yes, but that's not the point I guess. I just wanted to show that the current method doesn't really save much. Unifying the literals in the image is dangerous, because literal strings are not immutable (and they shouldn't be IMHO).
+ 10 I would love to have immutability bit.
So that could lead to random errors if a method is modifying a shared string literal.
This can of aliasing is bad, it mixes semantics and implementation. I hope that we will be able to fix that with Opal. Stef
5785
Age (days ago)
5785
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stéphane Ducasse