<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        Collection >> #wipeAllFromMemory would be nice to have. :-D Could be a combination of atAllPut: and #removeAll. And deal with ModificationForbidden.<div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 05.06.2020 21:11:30 schrieb Jakob Reschke <forums.jakob@resfarm.de>:</p><div style="font-family:Arial,Helvetica,sans-serif">Hmm so I was obviously wrong. I understand why, if I think what<br>happens to a method's string literal if you becomeForward: it... And<br>actually since Spur this would really write something to the object's<br>memory space, despite my assumption.<br><br>So why are these immutable? Because you specify a repository with an<br>evaluable constructor snippet, which has the credentials as string<br>literals, correct? Can't we just copy these arguments in the<br>constructors/setters, to make them "owned" and mutable?<br><br>Am Fr., 5. Juni 2020 um 19:36 Uhr schrieb Thiede, Christoph<br><christoph.thiede@student.hpi.uni-potsdam.de>:<br>><br>> This does not work for me:<br>><br>><br>> x := 'x'.<br>> x beReadOnlyObject.<br>> y := ''.<br>> x becomeForward: y copyHash: false.<br>><br>> Still raises a ModificationForbidden.<br>><br>><br>> Best,<br>><br>> Christoph<br>><br>> ________________________________<br>> Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Jakob Reschke <forums.jakob@resfarm.de><br>> Gesendet: Freitag, 5. Juni 2020 19:31:30<br>> An: The general-purpose Squeak developers list<br>> Betreff: Re: [squeak-dev] #clearCredentials vs. ModificationForbidden<br>><br>> With copyHash: false, I hope you can. It should not touch the original<br>> object, which is to be discarded anyway.<br>><br>> Am Fr., 5. Juni 2020 um 19:24 Uhr schrieb Thiede, Christoph<br>> <christoph.thiede@student.hpi.uni-potsdam.de>:<br>> ><br>> > > Use becomeForward: and collect garbage?<br>> ><br>> ><br>> > Afaik you cannot forward a read-only object?<br>> ><br>> > ________________________________<br>> > Von: Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Jakob Reschke <forums.jakob@resfarm.de><br>> > Gesendet: Freitag, 5. Juni 2020 17:53:30<br>> > An: The general-purpose Squeak developers list<br>> > Betreff: Re: [squeak-dev] #clearCredentials vs. ModificationForbidden<br>> ><br>> > Use becomeForward: and collect garbage?<br>> ><br>> > Marcel Taeumel <marcel.taeumel@hpi.de> schrieb am Fr., 5. Juni 2020, 16:27:<br>> >><br>> >> Hi all!<br>> >><br>> >> How to update MCHttpRepository >> #clearCredentials?<br>> >><br>> >> clearCredentials<br>> >> user ifNotNil: [user atAllPut: $x].<br>> >> password ifNotNil: [password atAllPut: $x].<br>> >> user := password := String empty<br>> >><br>> >> Make those strings not be read-only?<br>> >><br>> >> Best,<br>> >> Marcel<br>> >><br>> ><br>><br>><br><br></marcel.taeumel@hpi.de></forums.jakob@resfarm.de></squeak-dev-bounces@lists.squeakfoundation.org></christoph.thiede@student.hpi.uni-potsdam.de></forums.jakob@resfarm.de></squeak-dev-bounces@lists.squeakfoundation.org></christoph.thiede@student.hpi.uni-potsdam.de></div></blockquote>
                                        </div></body>