Skip to content

vm: implement GETCV / SETCV / SETMCNST - #99

Open
Dahrkael wants to merge 1 commit into
mrubyedge:masterfrom
Dahrkael:pr/1o-cvars
Open

Dahrkael wants to merge 1 commit into
mrubyedge:masterfrom
Dahrkael:pr/1o-cvars

Conversation

@Dahrkael

Copy link
Copy Markdown
Contributor

Implements opcodes GETCV/SETCV. resolve class variables through the class->super chain, sharing the definition site with subclasses; SETMCNST sets a constant on the module/class in R[a+1]. Quirks are documented in the code. Adds cvar and module-const tests.

Implements opcodes mruby 4.0 emits but the VM left commented out. GETCV/SETCV resolve class variables through the class->super chain, sharing the definition site with subclasses; SETMCNST sets a constant on the module/class in R[a+1]. Quirks are documented in the code. Adds cvar and module-const tests.
@udzura udzura self-assigned this Sep 17, 2026
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