Re: [Pharo-dev] Mutation of symbols

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] Mutation of symbols

Eliot Miranda-2
Hi Norbert,

On Mon, Jan 8, 2018 at 1:37 PM, Norbert Hartl <[hidden email]> 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