* [ruby-core:121952] [Ruby Bug#21318] Namespaces leak with permanent names
@ 2025-05-09 22:54 fxn (Xavier Noria) via ruby-core
2025-05-09 22:57 ` [ruby-core:121953] [Ruby Bug#21318] Namespaces leak with Module.nesting fxn (Xavier Noria) via ruby-core
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-09 22:54 UTC (permalink / raw)
To: ruby-core; +Cc: fxn (Xavier Noria)
Issue #21318 has been reported by fxn (Xavier Noria).
----------------------------------------
Bug #21318: Namespaces leak with permanent names
https://bugs.ruby-lang.org/issues/21318
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread* [ruby-core:121953] [Ruby Bug#21318] Namespaces leak with Module.nesting
2025-05-09 22:54 [ruby-core:121952] [Ruby Bug#21318] Namespaces leak with permanent names fxn (Xavier Noria) via ruby-core
@ 2025-05-09 22:57 ` fxn (Xavier Noria) via ruby-core
2025-05-10 11:06 ` [ruby-core:121980] " Eregon (Benoit Daloze) via ruby-core
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: fxn (Xavier Noria) via ruby-core @ 2025-05-09 22:57 UTC (permalink / raw)
To: ruby-core; +Cc: fxn (Xavier Noria)
Issue #21318 has been updated by fxn (Xavier Noria).
Subject changed from Namespaces leak with permanent names to Namespaces leak with Module.nesting
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.
----------------------------------------
Bug #21318: Namespaces leak with Module.nesting
https://bugs.ruby-lang.org/issues/21318#change-113070
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread* [ruby-core:121980] [Ruby Bug#21318] Namespaces leak with Module.nesting
2025-05-09 22:54 [ruby-core:121952] [Ruby Bug#21318] Namespaces leak with permanent names fxn (Xavier Noria) via ruby-core
2025-05-09 22:57 ` [ruby-core:121953] [Ruby Bug#21318] Namespaces leak with Module.nesting fxn (Xavier Noria) via ruby-core
@ 2025-05-10 11:06 ` Eregon (Benoit Daloze) via ruby-core
2025-12-09 12:47 ` [ruby-core:124089] " tagomoris (Satoshi Tagomori) via ruby-core
2025-12-09 12:54 ` [ruby-core:124099] " tagomoris (Satoshi Tagomori) via ruby-core
3 siblings, 0 replies; 5+ messages in thread
From: Eregon (Benoit Daloze) via ruby-core @ 2025-05-10 11:06 UTC (permalink / raw)
To: ruby-core; +Cc: Eregon (Benoit Daloze)
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.
[]
[#<Namespace:24,user,optional>]
```
----------------------------------------
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ruby-core:124089] [Ruby Bug#21318] Namespaces leak with Module.nesting
2025-05-09 22:54 [ruby-core:121952] [Ruby Bug#21318] Namespaces leak with permanent names fxn (Xavier Noria) via ruby-core
2025-05-09 22:57 ` [ruby-core:121953] [Ruby Bug#21318] Namespaces leak with Module.nesting fxn (Xavier Noria) via ruby-core
2025-05-10 11:06 ` [ruby-core:121980] " Eregon (Benoit Daloze) via ruby-core
@ 2025-12-09 12:47 ` tagomoris (Satoshi Tagomori) via ruby-core
2025-12-09 12:54 ` [ruby-core:124099] " tagomoris (Satoshi Tagomori) via ruby-core
3 siblings, 0 replies; 5+ messages in thread
From: tagomoris (Satoshi Tagomori) via ruby-core @ 2025-12-09 12:47 UTC (permalink / raw)
To: ruby-core; +Cc: tagomoris (Satoshi Tagomori)
Issue #21318 has been updated by tagomoris (Satoshi Tagomori).
Assignee set to tagomoris (Satoshi Tagomori)
----------------------------------------
Bug #21318: Namespaces leak with Module.nesting
https://bugs.ruby-lang.org/issues/21318#change-115533
* Author: fxn (Xavier Noria)
* Status: Open
* Assignee: tagomoris (Satoshi Tagomori)
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ruby-core:124099] [Ruby Bug#21318] Namespaces leak with Module.nesting
2025-05-09 22:54 [ruby-core:121952] [Ruby Bug#21318] Namespaces leak with permanent names fxn (Xavier Noria) via ruby-core
` (2 preceding siblings ...)
2025-12-09 12:47 ` [ruby-core:124089] " tagomoris (Satoshi Tagomori) via ruby-core
@ 2025-12-09 12:54 ` tagomoris (Satoshi Tagomori) via ruby-core
3 siblings, 0 replies; 5+ messages in thread
From: tagomoris (Satoshi Tagomori) via ruby-core @ 2025-12-09 12:54 UTC (permalink / raw)
To: ruby-core; +Cc: tagomoris (Satoshi Tagomori)
Issue #21318 has been updated by tagomoris (Satoshi Tagomori).
Status changed from Open to Closed
Now `Module.nesting` doesn't return its box information in a box.
```
MBA:build s-tagomori$ RUBY_BOX=1 ./exe/ruby -v
ruby 4.0.0dev (2025-12-09T12:29:36Z box-news-documents.. c998717de8) +PRISM [arm64-darwin24]
MBA:build s-tagomori$ RUBY_BOX=1 ./exe/ruby -ve 'p Module.nesting; ns = Ruby::Box.new; File.write "ns.rb", "p Module.nesting"; ns.require "./ns"'
ruby 4.0.0dev (2025-12-09T12:29:36Z box-news-documents.. c998717de8) +PRISM [arm64-darwin24]
./exe/ruby: warning: Ruby::Box is experimental, and the behavior may change in the future!
See doc/language/box.md for known issues, etc.
[]
[]
MBA:build s-tagomori$
```
----------------------------------------
Bug #21318: Namespaces leak with Module.nesting
https://bugs.ruby-lang.org/issues/21318#change-115543
* Author: fxn (Xavier Noria)
* Status: Closed
* Assignee: tagomoris (Satoshi Tagomori)
* 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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-12-09 13:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 22:54 [ruby-core:121952] [Ruby Bug#21318] Namespaces leak with permanent names fxn (Xavier Noria) via ruby-core
2025-05-09 22:57 ` [ruby-core:121953] [Ruby Bug#21318] Namespaces leak with Module.nesting fxn (Xavier Noria) via ruby-core
2025-05-10 11:06 ` [ruby-core:121980] " Eregon (Benoit Daloze) via ruby-core
2025-12-09 12:47 ` [ruby-core:124089] " tagomoris (Satoshi Tagomori) via ruby-core
2025-12-09 12:54 ` [ruby-core:124099] " tagomoris (Satoshi Tagomori) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).