6 Replies
Since it’s immutable it can’t be changed at all 😄.
Well yeah, but I want to craete a brand new string based on that _ImmutableString that returns object._value.to..string()...
String(example_immutable.copyinit) maybe?
Can you find the docs page on this for me?
And you did
__copyinit__
?The following should do something like you want, but it's important to be careful here with how long values live for. Again, only use this if you absolutely need to. More internal structures like
_ImmutableString
are probably best left alone.