New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Object#freeze #3340

Merged
merged 1 commit into from Dec 11, 2016

Conversation

Projects
None yet
3 participants
@k0kubun
Contributor

k0kubun commented Dec 10, 2016

close #2028

I want to use Object#freeze for Array and Hash to make them read-only. It's convenient to restrict regions in which you can modify a value. It improves maintainability because it makes easier to search where a value is modified.

k0kubun added a commit to itamae-kitchen/mitamae that referenced this pull request Dec 10, 2016

k0kubun added a commit to itamae-kitchen/mitamae that referenced this pull request Dec 10, 2016

@matz matz merged commit 1fbad32 into mruby:master Dec 11, 2016

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@k0kubun k0kubun deleted the k0kubun:object-freeze branch Dec 11, 2016

k0kubun added a commit to itamae-kitchen/mitamae that referenced this pull request Dec 11, 2016

matz added a commit that referenced this pull request Dec 11, 2016

matz added a commit that referenced this pull request Dec 11, 2016

matz added a commit that referenced this pull request Dec 11, 2016

matz added a commit that referenced this pull request Dec 12, 2016

@k0kubun k0kubun referenced this pull request Dec 12, 2016

Merged

Use MRB_FROZEN_P #2

@jmhmccr

This comment has been minimized.

Show comment
Hide comment
@jmhmccr

jmhmccr Dec 18, 2016

Suggest adding this to 1.3 notes: #3140

jmhmccr commented Dec 18, 2016

Suggest adding this to 1.3 notes: #3140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment