Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyfrozen string dedupSingle-choice MCQ

What bytecode does the literal-plus-freeze expression compile to (without the frozen_string_literal comment), and what is special about it compared to emitting putstring followed by a freeze call?

x = "abc".freeze