<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/enumerator.c, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) f15123c34ce80f3928612befe2a9aaf4c9d27fda: [Backport #18743]</title>
<updated>2024-02-25T09:29:16+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2024-02-25T09:29:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5e4606423da96c2e26b00981c22bddfce0d970bf'/>
<id>5e4606423da96c2e26b00981c22bddfce0d970bf</id>
<content type='text'>
	Fix stack trace for rescued StopIteration

	---
	 enumerator.c                 | 15 +++++++++++++--
	 test/ruby/test_enumerator.rb | 20 ++++++++++++++++++++
	 2 files changed, 33 insertions(+), 2 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Fix stack trace for rescued StopIteration

	---
	 enumerator.c                 | 15 +++++++++++++--
	 test/ruby/test_enumerator.rb | 20 ++++++++++++++++++++
	 2 files changed, 33 insertions(+), 2 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>Make Enumerartor.product return nil when called with a block</title>
<updated>2022-12-21T10:13:15+00:00</updated>
<author>
<name>Akinori MUSHA</name>
<email>knu@idaemons.org</email>
</author>
<published>2022-12-21T10:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cc4c28ec2efa71b1c8afb4ce11409ad7b5ca1c95'/>
<id>cc4c28ec2efa71b1c8afb4ce11409ad7b5ca1c95</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make product consistently yield an array of N elements instead of N arguments</title>
<updated>2022-12-21T09:19:19+00:00</updated>
<author>
<name>Akinori MUSHA</name>
<email>knu@idaemons.org</email>
</author>
<published>2022-12-21T09:19:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=308ccbaeb2c1c0e78d59c0411ddbeede8d2324f0'/>
<id>308ccbaeb2c1c0e78d59c0411ddbeede8d2324f0</id>
<content type='text'>
Inconsistency pointed out by @mame:

```
&gt;&gt; Enumerator.product([1], [2], [3]).to_a
=&gt; [[1, 2, 3]]
&gt;&gt; Enumerator.product([1], [2]).to_a
=&gt; [[1, 2]]
&gt;&gt; Enumerator.product([1]).to_a
=&gt; [1]
&gt;&gt; Enumerator.product().to_a
=&gt; [nil]
```

Got fixed as follows:

```
&gt;&gt; Enumerator.product([1], [2], [3]).to_a
=&gt; [[1, 2, 3]]
&gt;&gt; Enumerator.product([1], [2]).to_a
=&gt; [[1, 2]]
&gt;&gt; Enumerator.product([1]).to_a
=&gt; [[1]]
&gt;&gt; Enumerator.product().to_a
=&gt; [[]]
```

This was due to the nature of the N-argument funcall in Ruby.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Inconsistency pointed out by @mame:

```
&gt;&gt; Enumerator.product([1], [2], [3]).to_a
=&gt; [[1, 2, 3]]
&gt;&gt; Enumerator.product([1], [2]).to_a
=&gt; [[1, 2]]
&gt;&gt; Enumerator.product([1]).to_a
=&gt; [1]
&gt;&gt; Enumerator.product().to_a
=&gt; [nil]
```

Got fixed as follows:

```
&gt;&gt; Enumerator.product([1], [2], [3]).to_a
=&gt; [[1, 2, 3]]
&gt;&gt; Enumerator.product([1], [2]).to_a
=&gt; [[1, 2]]
&gt;&gt; Enumerator.product([1]).to_a
=&gt; [[1]]
&gt;&gt; Enumerator.product().to_a
=&gt; [[]]
```

This was due to the nature of the N-argument funcall in Ruby.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use "Fiber storage variables" consistently</title>
<updated>2022-12-20T22:05:56+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-12-20T22:02:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=33debffdd3aa0ef9752857530c125f0a889db970'/>
<id>33debffdd3aa0ef9752857530c125f0a889db970</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve documentation for fiber-scoped variables</title>
<updated>2022-12-20T22:05:56+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-12-20T21:10:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4495dea153a097c59d56819bc827bebfbef5be3f'/>
<id>4495dea153a097c59d56819bc827bebfbef5be3f</id>
<content type='text'>
* Especially around Enumerator.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Especially around Enumerator.
</pre>
</div>
</content>
</entry>
<entry>
<title>Never use the storage of another Fiber, that violates the whole design</title>
<updated>2022-12-20T18:32:23+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-12-20T16:59:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=45175962a6fd74ab2e9ba92f1280f3987af25494'/>
<id>45175962a6fd74ab2e9ba92f1280f3987af25494</id>
<content type='text'>
* See https://bugs.ruby-lang.org/issues/19078#note-30
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* See https://bugs.ruby-lang.org/issues/19078#note-30
</pre>
</div>
</content>
</entry>
<entry>
<title>Reject keyword arguments given to Enumerator::Product.new</title>
<updated>2022-12-16T04:32:13+00:00</updated>
<author>
<name>Akinori MUSHA</name>
<email>knu@idaemons.org</email>
</author>
<published>2022-12-16T04:32:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ad18d1297ed82aa9c38375532b0b709131cf1ae7'/>
<id>ad18d1297ed82aa9c38375532b0b709131cf1ae7</id>
<content type='text'>
The use of keyword arguments should be reserved for future extension.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The use of keyword arguments should be reserved for future extension.
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce `Fiber#storage` for inheritable fiber-scoped variables. (#6612)</title>
<updated>2022-12-01T10:00:33+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2022-12-01T10:00:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0436f1e15a8e79ffef5ea412ac1312cbf9f063e6'/>
<id>0436f1e15a8e79ffef5ea412ac1312cbf9f063e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>`remain` no longer starts with 0</title>
<updated>2022-11-25T07:11:17+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-25T04:47:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=64c8ed272fea57e0825650f75e05eb44456a039a'/>
<id>64c8ed272fea57e0825650f75e05eb44456a039a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18971] Add precheck to enumerator</title>
<updated>2022-11-25T07:11:17+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-25T04:42:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ffc6c5d056e0f18a9bdfb9b1477d0192a6d37ea3'/>
<id>ffc6c5d056e0f18a9bdfb9b1477d0192a6d37ea3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
