From: "Eregon (Benoit Daloze) via ruby-core" Date: 2025-05-10T11:06:50+00:00 Subject: [ruby-core:121980] [Ruby Bug#21318] Namespaces leak with Module.nesting Issue #21318 has been updated by Eregon (Benoit Daloze). Complete reproducer: ``` $ RUBY_NAMESPACE=1 ruby -ve 'p Module.nesting; ns = Namespace.new; File.write "ns.rb", "p Module.nesting"; ns.require "./ns"' ruby 3.5.0dev (2025-05-10T07:50:29Z namespace-on-read-.. bd4f57f96b) +PRISM [x86_64-linux] ruby: warning: Namespace is experimental, and the behavior may change in the future! See doc/namespace.md for know issues, etc. [] [#] ``` ---------------------------------------- Bug #21318: Namespaces leak with Module.nesting https://bugs.ruby-lang.org/issues/21318#change-113097 * Author: fxn (Xavier Noria) * Status: Open * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Namespaces are not transparent for this program: ```ruby Module.nesting ``` The nesting is empty or not depending on whether it is being executed under a namespace. -- 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/