[前][次][番号順一覧][スレッド一覧]

ruby-changes:42157

From: hsbt <ko1@a...>
Date: Wed, 23 Mar 2016 10:39:48 +0900 (JST)
Subject: [ruby-changes:42157] hsbt:r54231 (trunk): * variable.c: Added documentation about order of `Module#constants`

hsbt	2016-03-23 10:39:41 +0900 (Wed, 23 Mar 2016)

  New Revision: 54231

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54231

  Log:
    * variable.c: Added documentation about order of `Module#constants`
      [ci skip][Bug #12121][ruby-dev:49505][fix GH-1301]

  Modified files:
    trunk/ChangeLog
    trunk/variable.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54230)
+++ ChangeLog	(revision 54231)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 23 10:39:38 2016  Koichi ITO  <koic.ito@g...>
+
+	* 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  <duerst@i...>
 
 	* include/ruby/oniguruma.h: Additional flag for characters that are titlecase.
Index: variable.c
===================================================================
--- variable.c	(revision 54230)
+++ variable.c	(revision 54231)
@@ -2457,6 +2457,9 @@ rb_const_list(void *data) https://github.com/ruby/ruby/blob/trunk/variable.c#L2457
  *  modules (example at start of section), unless the <i>inherit</i>
  *  parameter is set to <code>false</code>.
  *
+ *  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
  *

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]