Actions
Feature #4233
closed
Actions
Added by runpaint (Run Paint Run Run) over 15 years ago. Updated over 8 years ago.
Is this really a feature request? Looks a (low-priority?) bug to me.
drbrain, what do you think about this?
--
Yusuke Endoh mame@tsg.ne.jp
=begin
If I'm reading load.c correctly, autoload_provided() uses rb_feature_provided() which checks $LOAD_PATH only. This will cause autoload to fail if the gem has not been activated yet.
If autoload's specification only allows autoloading from $LOAD_PATH this is not a bug. The documentation for Kernel#autoload does not say how the file will be loaded, but Module#autoload says:
Registers filename to be loaded (using Kernel::require) the first
time that module (which may be a String or a symbol) is accessed
in the namespace of mod.
Which implies it is a bug. Perhaps this documentation is wrong.
Since nahi is the autoload expert, I have assigned this back to him.
=end
Thank you drbrain for the explanation!
Recently, nahi is not so active. So, I'm sorry but I recognize this as a (bad) spec of 2.0.0.
--
Yusuke Endoh mame@tsg.ne.jp
Seems this issue was fixed. Closing.