mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* NEWS: Update for lazy size evaluation [Feature #6636]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0814c4ac64
commit
81bfd9a6c0
2 changed files with 38 additions and 0 deletions
27
ChangeLog
27
ChangeLog
|
@ -1,3 +1,30 @@
|
|||
Wed Nov 7 02:06:40 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||
|
||||
* 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@tenderlovemaking.com>
|
||||
|
||||
* object.c (rb_mod_const_get): Fix constant missing exception class
|
||||
|
|
11
NEWS
11
NEWS
|
@ -27,6 +27,12 @@ with all sufficient information, see the ChangeLog file.
|
|||
* 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 @@ with all sufficient information, see the ChangeLog file.
|
|||
* 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 @@ with all sufficient information, see the ChangeLog file.
|
|||
* 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
|
||||
|
|
Loading…
Reference in a new issue