From b33841b32a82fa3a660c7fda97bc2d6784454d75 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 23 Mar 2016 01:39:41 +0000 Subject: * variable.c: Added documentation about order of `Module#constants` [ci skip][Bug #12121][ruby-dev:49505][fix GH-1301] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ variable.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 37cf8e10e0..848674d8ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 23 10:39:38 2016 Koichi ITO + + * variable.c: Added documentation about order of `Module#constants` + [ci skip][Bug #12121][ruby-dev:49505][fix GH-1301] + Tue Mar 22 21:08:30 2016 Martin Duerst * include/ruby/oniguruma.h: Additional flag for characters that are titlecase. diff --git a/variable.c b/variable.c index b53d0c1d1d..940b47d252 100644 --- a/variable.c +++ b/variable.c @@ -2457,6 +2457,9 @@ rb_const_list(void *data) * modules (example at start of section), unless the inherit * parameter is set to false. * + * The implementation makes no guarantees about the order in which the + * constants are yielded. + * * IO.constants.include?(:SYNC) #=> true * IO.constants(false).include?(:SYNC) #=> false * -- cgit v1.2.3