Repository navigation
Module/Class: advance MRI 4.0.6 conformance (core/module residuals) - #554
Merged
Merged
Conversation
…function/private/public/protected; undef_method module-vs-class NameError wording alias_method/undef_method/remove_method now raise FrozenError on a frozen receiver, coercing each name through #to_str first (TypeError before frozen, frozen before the missing-name NameError, no-args raise nothing), matching MRI 4.0. module_function and the bare private/public/protected directives are marked private instance methods of Module. undef_method's missing-name NameError now says "module" vs "class" and names the receiver by #to_s. core/module rubyspec deltas: alias_method 14->17, undef_method 13->17, remove_method 12->14, module_function 15->17, private 15->16, protected 13->14, public 15->16. No regressions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… is defined directly on the receiver MRI raises NameError from private_constant/public_constant when a name is not a constant defined directly on the receiver (inherited or missing), before returning self. The access control itself is still not enforced. core/module deltas: private_constant 0->1, public_constant 2->3. No regressions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Advances core/module residuals against MRI 4.0.6 (edit-in-place, no shadowed definitions). Suite + wasm + gofmt verified locally before push; FLOOR untouched — consolidated ratchet bump follows once the wave lands.
🤖 Generated with Claude Code