[squeak-dev] TestRunner not assigning strings/remembering oldvalues of temp vars.

Rob Withers reefedjib at yahoo.com
Sun Jul 25 16:45:03 UTC 2010



--------------------------------------------------
From: "Bert Freudenberg" <bert at freudenbergs.de>
Sent: Sunday, July 25, 2010 12:40 PM
To: "The general-purpose Squeak developers list" 
<squeak-dev at lists.squeakfoundation.org>
Subject: Re: [squeak-dev] TestRunner not assigning strings/remembering 
oldvalues of temp vars.

>
> On 25.07.2010, at 04:22, Rob Withers wrote:
>
>> Thanks for pointing this out.  I am not happy about this at all.  It is 
>> very non-intuitive, all due to an optimization that limits my 
>> expressiveness.
>
> If string literals were immutable you would have to copy them yourself, 
> too. So in any case you need to write
>
> plain := 'squeaker' copy
>
> if you intend to modify that string in-place.
>

Sure, but I like mutable strings...just an array for pete's sake, holding 
Characters (bytes).  I don't like that the literals can be mutated.  There 
must be a way to mutate the string, detect that it is a literal and replace 
the literal with a copy of the original.   ...or something  :).

Rob

> - Bert -
>
>
> 



More information about the Squeak-dev mailing list