[#107867] Fwd: [ruby-cvs:91197] 8f59482f5d (master): add some tests for Unicode Version 14.0.0 — Martin J. Dürst <duerst@...>
To everybody taking care of continuous integration:
3 messages
2022/03/13
[#108090] [Ruby master Bug#18666] No rule to make target 'yaml/yaml.h', needed by 'api.o' — duerst <noreply@...>
Issue #18666 has been reported by duerst (Martin D端rst).
7 messages
2022/03/28
[#108117] [Ruby master Feature#18668] Merge `io-nonblock` gems into core — "Eregon (Benoit Daloze)" <noreply@...>
Issue #18668 has been reported by Eregon (Benoit Daloze).
22 messages
2022/03/30
[ruby-core:107848] [Ruby master Feature#11547] remove top-level constant lookup
From:
"fxn (Xavier Noria)" <noreply@...>
Date:
2022-03-11 18:55:56 UTC
List:
ruby-core #107848
Issue #11547 has been updated by fxn (Xavier Noria). I do not know which is the correct definition of `const_get`, Ruby core knows :). However, let me say that I have always thought about `const_get` as what happens during a _relative_ constant lookup. That is, in my mind, a relative constant lookup is basically: 1) Check the nesting + 2) `const_get` (conceptually, and includes `const_missing` if needed). Take for example: ```ruby Module.new.const_get(:String) # => String ``` You get `String` there, but it is not in the ancestors. Why? Because it is checking `Object` by hand, like the relative constant lookup algorithm does. I believe ```ruby String.const_get(:Hash) # => ``` has to be understood that way. ---------------------------------------- Feature #11547: remove top-level constant lookup https://bugs.ruby-lang.org/issues/11547#change-96788 * Author: gucki1 (Corin Langosch) * Status: Closed * Priority: Normal ---------------------------------------- If ruby cannot find a class in the specified scope it uses the top-level constant of the same name if it exists and emits a warning: ~~~ irb(main):006:0> class Auth; end => nil irb(main):007:0> class Twitter; end => nil irb(main):008:0> Twitter::Auth (irb):8: warning: toplevel constant Auth referenced by Twitter::Auth => Auth ~~~ In some cases this is not playing nicely with rails autoloading as can be seen here: https://github.com/rails/rails/issues/6931. Many more issues like this exist. Imo I don't see any reason why this fallback makes any sense. So I'd like to suggest to remove it completely or at least add an option to disable it. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>