This was discussed again at the RubyKaigi developer meeting, but it was not accepted. However, the discussion during the meeting was helpful, as it turns out you can emulate this feature by using `autoload :Constant, "file/that/raises/ex...jeremyevans0 (Jeremy Evans)
* [Feature #21871] Add Module#undef_const (jeremyevans0) * This was discussed at the February dev meeting, but the Redmine ticket didn't do a good job of explaining why I want this. * I would like to pitch for this in person and be...jeremyevans0 (Jeremy Evans)
I'm seeing a regression in Ruby 4.0.2 when there is a gem activation problem. Install two versions of a gem, where one version has a file the other doesn't. One example here is rack: ``` $ gem install rack --version '< 3' $ gem i...jeremyevans0 (Jeremy Evans)
Eregon (Benoit Daloze) wrote in #note-8: > jeremyevans0 (Jeremy Evans) wrote in #note-5: > ... Sure: https://github.com/ruby/ruby/pull/16133jeremyevans0 (Jeremy Evans)
* [Feature #21871] Add Module#undef_const (jeremyevans0) * I'd like to add this method, which offers for constants the same behavior that `undef_method` offers for methods. * This allows hiding specific constants inside a namespace...jeremyevans0 (Jeremy Evans)
I propose to add `Module#undef_const`, which would operate for constants similarly to how `undef_method` (and the `undef` keyword) works for methods. When an undefed constant is found during constant lookup, lookup stops, and results in ...jeremyevans0 (Jeremy Evans)
Eregon (Benoit Daloze) wrote in #note-4: > Interestingly enough I noticed I believe the same (or very similar) segfault yesterday when [trying to test the behavior](https://github.com/truffleruby/truffleruby/pull/4151#discussion_r277102...jeremyevans0 (Jeremy Evans)
matz (Yukihiro Matsumoto) wrote in #note-41: > One possible solution is providing our version of `sole` that raises `ArgumentError`, only if AcriveSupport would define `SoleItemExpectedEror = ArgumentError` or something similar. My u...jeremyevans0 (Jeremy Evans)