Skip to content

Freeze all instances of Regexp, except subclass instances - #16530

Merged
eregon merged 1 commit into
ruby:masterfrom
eregon:freeze-regexp-instances-but-not-subclasses
Mar 25, 2026
Merged

Freeze all instances of Regexp, except subclass instances#16530
eregon merged 1 commit into
ruby:masterfrom
eregon:freeze-regexp-instances-but-not-subclasses

Conversation

@eregon

@eregon eregon commented Mar 24, 2026

Copy link
Copy Markdown
Member

@eregon
eregon force-pushed the freeze-regexp-instances-but-not-subclasses branch 6 times, most recently from 465bc1a to 3aa9d29 Compare March 24, 2026 22:29
* Instances of a subclass of Regexp are not frozen for compatibility.
* [Feature ruby#8948]
* Use a less confusing example in test_regexp2,
  the ivar was named @encoding but had no effect on Regexp#encoding.
@eregon
eregon force-pushed the freeze-regexp-instances-but-not-subclasses branch from 3aa9d29 to 129d000 Compare March 24, 2026 22:54
@eregon
eregon merged commit cb03bf4 into ruby:master Mar 25, 2026
95 checks passed
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.

1 participant