Actions
Bug #2630
closedgenerator.rb missing from 1.9.1 standard library?
Description
=begin
Installed 1.9.1 Windows installer RC1 - generator.rb seems not to be not present
I copied generator.rb from lib/ruby/1.8, which fixed the problem with the library that required it.
AFAIK, generator is part of the standard library in 1.8 (it's documented on p683 of Pickaxe Second Edition).
Unintended omission? Functionality not needed in 1.9?
=end
Updated by rogerdpack (Roger Pack) over 14 years ago
=begin
I believe it's been replaced with (now built in) enumerators and fibers.
I think you can get the same functionality Generator.new used to give you by just replacing it with Enumerator.new
-r
ref: http://wiki.github.com/rdp/ruby_tutorials_core/enumerator
=end
Updated by jeremyevans0 (Jeremy Evans) over 4 years ago
- Description updated (diff)
- Status changed from Open to Closed
Actions
Like0
Like0Like0