From: "alanwu (Alan Wu) via ruby-core" Date: 2025-03-27T22:08:56+00:00 Subject: [ruby-core:121461] [Ruby Bug#21094] Module#set_temporary_name does not affect a name of a nested module Issue #21094 has been updated by alanwu (Alan Wu). Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: DONE 3.4 backport done at commit:5b3970f68b9108e0976b75b5d67da8c56eaa9db4 ---------------------------------------- Bug #21094: Module#set_temporary_name does not affect a name of a nested module https://bugs.ruby-lang.org/issues/21094#change-112464 * Author: andrykonchin (Andrew Konchin) * Status: Closed * ruby -v: 3.4.1 * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: DONE ---------------------------------------- Wondering whether it's intentional and correct behaviour: ```ruby m = Module.new m::N = Module.new p m::N.name # => "#::N" m.set_temporary_name("foo") p m::N.name # => "#::N" ``` I would expect that setting `foo` as a temporary name changes `m::N.name` to `foo::N`. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/