[Pharo-dev] Mutation of symbols

Eliot Miranda eliot.miranda at gmail.com
Thu Jan 11 14:54:14 EST 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.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20180111/84fa86d1/attachment-0002.html>


More information about the Pharo-dev mailing list