Skip to content

Module/Class: advance MRI 4.0.6 conformance (core/module residuals) - #554

Merged
tannevaled merged 2 commits into
mainfrom
feat/agent-module
Sep 4, 2026
Merged

tannevaled merged 2 commits into
mainfrom
feat/agent-module

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

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

tannevaled and others added 2 commits September 4, 2026 08:29
…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>
@tannevaled
tannevaled merged commit b616dba into main Sep 4, 2026
7 checks passed
@tannevaled
tannevaled deleted the feat/agent-module branch September 4, 2026 07:51
tannevaled added a commit that referenced this pull request Sep 4, 2026
Locks in #553 (Kernel), #554 (Module/Class) and #555 (Exception). Measured
18354 passing on the pinned corpus, up from 18245.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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