[squeak-dev] #clearCredentials vs. ModificationForbidden

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Jun 5 17:24:21 UTC 2020

> Use becomeForward: and collect garbage?

Afaik you cannot forward a read-only object?

Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Jakob Reschke <forums.jakob at resfarm.de>
Gesendet: Freitag, 5. Juni 2020 17:53:30
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] #clearCredentials vs. ModificationForbidden

Use becomeForward: and collect garbage?

Marcel Taeumel <marcel.taeumel at hpi.de<mailto:marcel.taeumel at hpi.de>> schrieb am Fr., 5. Juni 2020, 16:27:
Hi all!

How to update MCHttpRepository >> #clearCredentials?

user ifNotNil: [user atAllPut: $x].
password ifNotNil: [password atAllPut: $x].
user := password := String empty

Make those strings not be read-only?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200605/64236780/attachment.html>

More information about the Squeak-dev mailing list