Add a document to autoload
Users are responsible for avoiding circular autoload. [Misc #21154]
This commit is contained in:
parent
4b844f7d9e
commit
ee1f39ef88
Notes:
git
2025-03-13 13:08:17 +00:00
6
load.c
6
load.c
@ -1471,6 +1471,9 @@ ruby_init_ext(const char *name, void (*init)(void))
|
||||
* If _const_ in _mod_ is defined as autoload, the file name to be
|
||||
* loaded is replaced with _filename_. If _const_ is defined but not
|
||||
* as autoload, does nothing.
|
||||
*
|
||||
* Files that are currently being loaded must not be registered for
|
||||
* autoload.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
@ -1535,6 +1538,9 @@ rb_mod_autoload_p(int argc, VALUE *argv, VALUE mod)
|
||||
* If _const_ is defined as autoload, the file name to be loaded is
|
||||
* replaced with _filename_. If _const_ is defined but not as
|
||||
* autoload, does nothing.
|
||||
*
|
||||
* Files that are currently being loaded must not be registered for
|
||||
* autoload.
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user