Arrays / collections with literal syntax - fixed size?

tim Rowledge tim at rowledge.org
Sun Jan 6 22:09:44 UTC 2008


On 6-Jan-08, at 12:54 PM, Alexander Lazarevic' wrote:

>
>> Right.
>>
>> It's the fact that #(..) is a literal.
>> And modifying a literal is a bad practice, whatever the language.
> Now I was under the impression, that a context had a copy of a  
> compiled
> method with copies of the literals, so that you could only modify the
> copies but not the literals in the compiled method. But it seems not  
> to
> be that way:


Goodness me, wherever did you get that idea from? If we had to copy a  
CM and all its literals every time we activated a method it would  
certainly impact performance!

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful Latin Phrases:- Aio, quantitas magna frumentorum est. = Yes,  
that is a very large amount of corn.





More information about the Squeak-dev mailing list