WideSymbol>>#privateAt:put: fails silently

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

WideSymbol>>#privateAt:put: fails silently

NorbertHartl
 
If you inspect

('hello', (Character codePoint: 8002) asString) asSymbol
        privateAt: 1 put: $q;
        yourself.

The symbol is not modified but also it raises no error. Shouldn’t that be the case?

Norbert
Reply | Threaded
Open this post in threaded view
|

Re: WideSymbol>>#privateAt:put: fails silently

David T. Lewis
 
On Mon, Jan 08, 2018 at 11:36:54AM +0100, Norbert Hartl wrote:
>  
> If you inspect
>
> ('hello', (Character codePoint: 8002) asString) asSymbol
> privateAt: 1 put: $q;
> yourself.
>
> The symbol is not modified but also it raises no error. Shouldn???t that be the case?
>

Is this a Pharo question?

In Squeak (64 bit Spur) there is no privateAt:put: and at:put: raises errorNoModification
as expected for a WideSymbol.

Dave