Skip to content

Add FreezableInterface to manage the _Utf8#140

Merged
chitoku-k merged 1 commit into
string/internfrom
string/intern-freezable
May 10, 2019
Merged

Add FreezableInterface to manage the _Utf8#140
chitoku-k merged 1 commit into
string/internfrom
string/intern-freezable

Conversation

@chitoku-k
Copy link
Copy Markdown
Member

Related: #135

Because the string literal becomes non-writable when it appears (#135 (comment)), this PR adds FreezableInterface so it turns the _Utf8 instance to non-writable status which prevents String#intern() from writing to it.

@chitoku-k chitoku-k requested a review from m3m0r7 May 9, 2019 15:26
@m3m0r7
Copy link
Copy Markdown
Member

m3m0r7 commented May 10, 2019

@chitoku-k
Nice !! I'm feeling that It is beautiful code.

@chitoku-k chitoku-k merged commit be65f0d into string/intern May 10, 2019
@chitoku-k chitoku-k deleted the string/intern-freezable branch May 10, 2019 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants