[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18129] Re: Enumerators that know about a block

From: "David A. Black" <dblack@...>
Date: 2008-08-05 10:35:17 UTC
List: ruby-core #18129
Hi --

I don't usually "bump" questions but this one got kind of drowned out
by the choice/rand/sample discussion :-)

I'm really curious about it, and it's still not making sense to me.


David

On Fri, 1 Aug 2008, David A. Black wrote:

> Hi --
>
> I'm remembering that at one point it was possible to do this:
>
>  array = [1,2,3]
>  func = lambda {|x| x * 10 }
>  e = array.enum_for(:map, &func)
>  e.next
>  => 10
>
> But now the result is 1, because &func is ignored.
>
> I'm (a) puzzled by this, since it seems to me that enumerators are
> much more useful if they can remember a block, and (b) wondering if
> there's some similar replacement technique that I haven't managed to
> figure out.
>
>
> David
>
> -- 
> Rails training from David A. Black and Ruby Power and Light:
> *  Advancing With Rails    August 18-21    Edison, NJ
> * Co-taught by D.A. Black and Erik Kastner
> See http://www.rubypal.com for details and updates!
>

-- 
Rails training from David A. Black and Ruby Power and Light:
  *  Advancing With Rails    August 18-21    Edison, NJ
  * Co-taught by D.A. Black and Erik Kastner
See http://www.rubypal.com for details and updates!

In This Thread