mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
b07518e85c
`&nil` is recently introduced in CRuby to explicitly declare that a method does not accept a block. When a block is passed, ArgumentError "no block accepted" is raised. This is analogous to `**nil` for keyword arguments. The noblock flag is encoded in bit 23 of OP_ENTER's aspec operand (24=n1:m5:o5:r1:m5:k5:d1:b1), avoiding the need for a new opcode. Co-authored-by: Claude <noreply@anthropic.com>