Project

General

Profile

Actions

Bug #2630

closed

generator.rb missing from 1.9.1 standard library?

Added by mikewoodhouse (Mike Woodhouse) about 14 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
ruby -v:
1.9.1
[ruby-core:27699]

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

Actions #1

Updated by rogerdpack (Roger Pack) about 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

Actions #2

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Description updated (diff)
  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0