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

ruby-changes:25469

From: marcandre <ko1@a...>
Date: Wed, 7 Nov 2012 02:19:35 +0900 (JST)
Subject: [ruby-changes:25469] marcandRe: r37526 (trunk): * NEWS: Update for lazy size evaluation [Feature #6636]

marcandre	2012-11-07 02:17:12 +0900 (Wed, 07 Nov 2012)

  New Revision: 37526

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37526

  Log:
    * NEWS: Update for lazy size evaluation [Feature #6636]

  Modified files:
    trunk/ChangeLog
    trunk/NEWS

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37525)
+++ ChangeLog	(revision 37526)
@@ -1,3 +1,30 @@
+Wed Nov  7 02:06:40 2012  Marc-Andre Lafortune  <ruby-core@m...>
+
+	* enumerator.c: New method #size; constructor accepts size.
+	                Have #to_enum accept a block
+	                Warn when using deprecated form of constructor
+	                Support #size for enumerators created from enumerators
+	                Support for lazy.{map|flat_map|...}.size.
+
+	* include/ruby/intern.h: RETURN_SIZED_ENUMERATOR for support of
+	  sized enumerators.
+
+	* array.c: Support for various enumerator.size.
+
+	* enum.c: ditto.
+
+	* hash.c: ditto.
+
+	* numeric.c: ditto.
+
+	* range.c: ditto.
+
+	* string.c: ditto.
+
+	* struct.c: ditto.
+
+	* vm_eval.c: ditto.
+
 Tue Nov  6 20:40:28 2012  Aaron Patterson <aaron@t...>
 
 	* object.c (rb_mod_const_get): Fix constant missing exception class
Index: NEWS
===================================================================
--- NEWS	(revision 37525)
+++ NEWS	(revision 37526)
@@ -27,6 +27,12 @@
     * added method:
       * added Enumerable#lazy method for lazy enumeration.
 
+  * Enumerator
+    * added method:
+      * added Enumerator#size for lazy size evaluation.
+    * extended method:
+      * Enumerator.new accept an argument for lazy size evaluation.
+
   * ENV
     * aliased method:
       * ENV.to_h is a new alias for ENV.to_hash
@@ -52,6 +58,7 @@
       * Kernel#warn accepts multiple args in like puts.
       * Kernel#caller accepts second optional argument `n' which specify
         required caller size.
+      * Kernel#to_enum and enum_for accept a block for lazy size evaluation.
     * incompatible changes:
       * system() and exec() closes non-standard file descriptors
         (The default of :close_others option is changed to true by default.)
@@ -88,6 +95,10 @@
     * added method:
       * added nil.to_h which returns {}
 
+  * Range
+    * added method:
+      * added Range#size for lazy size evaluation.
+
   * Signal
     * incompatible changes:
       * Signal.trap raises ArgumentError when :SEGV, :BUS, :ILL, :FPE, :VTALRM

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

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