[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>

Bug #3137: complex.rb changes exceptions of Math

15 messages 2010/04/12
[#40967] Re: [Bug #3137] complex.rb changes exceptions of Math — keiju@... (石塚圭樹) 2010/04/13

けいじゅ@いしつかです.

[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>

こんにちは!アーロンです。

17 messages 2010/04/22
[#41039] Re: Windows と DL が使用条件の libffi — "U.Nakamura" <usa@...> 2010/04/22

こんにちは、なかむら(う)です。

[#41040] Re: Windows と DL が使用条件の libffi — "NARUSE, Yui" <naruse@...> 2010/04/22

成瀬です。

[#41059] Re: Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...> 2010/04/26

2010/4/21 NARUSE, Yui <[email protected]>:

[#41060] Re: Windows と DL が使用条件の libffi — Yugui <yugui@...> 2010/04/26

2010/4/26 Aaron Patterson <[email protected]>:

[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>

Feature #3203: LazySweepGC patch

15 messages 2010/04/26
[#41069] Re: [Feature #3203] LazySweepGC patch — Yusuke ENDOH <mame@...> 2010/04/27

遠藤です。

[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

29 messages 2010/04/30
[#41111] Re: Rails3 M17N — Urabe Shyouhei <shyouhei@...> 2010/04/30

Yukihiro Matsumoto =E3=81=95=E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3=81=BE=

[#41113] Re: Rails3 M17N — Yukihiro Matsumoto <matz@...> 2010/04/30

まつもと ゆきひろです

[ruby-dev:40906] Benchmark::Tms#add!がNameErrorになる

From: 滝沢裕章 <takky818@...>
Date: 2010-04-02 02:53:20 UTC
List: ruby-dev #40906
滝沢といいます。

Benchmark::Tms#add!を実行すると、以下のようにNameErrorが発生します。

% ruby -v -r benchmark -e 'Benchmark::Tms.new.add! {}'
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
/usr/local/lib/ruby/1.9.1/benchmark.rb:444:in `add!': undefined local
variable or method `blk' for #<Benchmark::Tms:0x996ce94> (NameError)
        from -e:1:in `<main>'

add!の引数が指定されていないのが原因だと思います。

% diff -u benchmark.rb.orig benchmark.rb
--- benchmark.rb.orig   2010-04-02 11:23:22.000000000 +0900
+++ benchmark.rb        2010-04-02 11:31:10.000000000 +0900
@@ -440,7 +440,7 @@
     #
     # An in-place version of #add.
     #
-    def add!
+    def add!(&blk)
       t = Benchmark::measure(&blk)
       @utime  = utime + t.utime
       @stime  = stime + t.stime

ご確認よろしくお願いします。

-- 
滝沢 裕章
[email protected]

In This Thread

Prev Next