Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyYARV bytecodeSingle-choice MCQ

What does the disassembly of `FOO` (a top-level constant read) reveal about constant access in modern YARV?

puts RubyVM::InstructionSequence.compile("FOO").disasm # 0000 opt_getconstant_path <ic:0 FOO> # 0002 leave