[#38392] Enumerable#gather_each — Tanaka Akira <akr@...>

ときに、複数行をまとめて扱いたいことがあります。

47 messages 2009/05/09
[#38394] Re: Enumerable#gather_each — ujihisa <ujihisa@...> 2009/05/09

ujihisaと申します。

[#38400] Re: Enumerable#gather_each — Yukihiro Matsumoto <matz@...> 2009/05/09

まつもと ゆきひろです

[#38399] Re: Enumerable#gather_each — "Akinori MUSHA" <knu@...> 2009/05/09

At Sat, 9 May 2009 15:30:20 +0900,

[#38405] Re: Enumerable#gather_each — Tanaka Akira <akr@...> 2009/05/10

In article <[email protected]>,

[#38524] [Bug #1503] -Kuをつけた時、/[#{s}]/n と Regexp.new("[#{s}]",nil,"n") で実行結果が異なる — sinnichi eguchi <redmine@...>

Bug #1503: -Kuをつけた時、/[#{s}]/n と Regexp.new("[#{s}]",nil,"n") で実行結果が異なる

8 messages 2009/05/22

[ruby-dev:38474] [Bug #1477] DL::Function#unbind raises TypeError

From: Takashi Tamura <redmine@...>
Date: 2009-05-16 08:34:54 UTC
List: ruby-dev #38474
Bug #1477: DL::Function#unbind raises TypeError
http://redmine.ruby-lang.org/issues/show/1477

起票者: Takashi Tamura
ステータス: Open, 優先度: Normal
カテゴリ: ext, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-05-16 trunk 23440) [i686-linux]

コールバックではない単なる DL::Function に対して unbind を呼ぶと
よくわからないエラーが出ます。

 $ cat d11.rb
 
 require 'dl/import'
 
 h = DL::Handle.new
 addr = h.sym('strlen')
 cfunc = DL::CFunc.new(addr, DL::TYPE_INT)
 func = DL::Function.new(cfunc, [DL::TYPE_VOIDP])
 func.unbind

 $ ruby-1.9 -v d11.rb
 ruby 1.9.2dev (2009-05-16 trunk 23440) [i686-linux]
 /usr/local/pkg/ruby-1.9/lib/ruby/1.9.1/dl/callback.rb:51:in `[]': no implicit conversion from nil to integer  (TypeError)
         from /usr/local/pkg/ruby-1.9/lib/ruby/1.9.1/dl/callback.rb:51:in `remove_callback_internal'
         from /usr/local/pkg/ruby-1.9/lib/ruby/1.9.1/dl/callback.rb:60:in `remove_cdecl_callback'
         from /usr/local/pkg/ruby-1.9/lib/ruby/1.9.1/dl/func.rb:88:in `unbind'
         from d11.rb:8:in `<main>'


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next