[squeak-dev] [Pharo-dev] Mutation of symbols

Eliot Miranda eliot.miranda at gmail.com
Thu Jan 11 19:54:14 UTC 2018


Hi Norbert,

On Mon, Jan 8, 2018 at 1:37 PM, Norbert Hartl <norbert at hartl.name> wrote:

> What is the purpose of
>
> ByteSymbol>>#privateAt:put:
> ByteSymbol>>#string:
> WideSymbol>>#privateAt:put:
> WideSymbol>>#string:
>
> ?
>
> thanks,
>
> Norbert
>

I *think* they're a hack for creating new Symbols.  A better approach would
be to create a ByteString or a WideString and then use adoptInstance: to
change the String's class to the relevant Symbol class.

_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20180111/84fa86d1/attachment.html>


More information about the Squeak-dev mailing list