[#37050] [Feature #735] Date#inspect — "rubikitch ." <redmine@...>

Feature #735: Date#inspect

14 messages 2008/11/09

[#37075] [Feature #747] /\A/u ignores BOM — Shyouhei Urabe <redmine@...>

Feature #747: /\A/u ignores BOM

14 messages 2008/11/12

[#37161] m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...>

Yuguiです。

35 messages 2008/11/24
[#37183] Re: m17n of irb — keiju@... (keiju ISHITSUKA) 2008/11/25

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

[#37203] Re: m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...> 2008/11/26

keiju ISHITSUKA さんは書きました:

[#37292] Re: m17n of irb — Yukihiro Matsumoto <matz@...> 2008/12/06

まつもと ゆきひろです

[#37293] Re: m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...> 2008/12/07

Yuguiです。

[#37298] Re: m17n of irb — Yukihiro Matsumoto <matz@...> 2008/12/07

まつもと ゆきひろです

[#37210] RSS::Maker.create(version) — "Akinori MUSHA" <knu@...>

 RSS::Maker で、 "2.0" 等の文字列でフィードのフォーマットを渡す

15 messages 2008/11/27

[#37213] Re: [ruby-cvs:27586] Ruby:r20368 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return — Tadayoshi Funaba <tadf@...>

> * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return

8 messages 2008/11/27

[ruby-dev:37031] Re: :FOO === "FOO" => true and case/when behavior

From: keiju@... (石塚圭樹)
Date: 2008-11-07 05:12:01 UTC
List: ruby-dev #37031
けいじゅ@いしつかです.

In [ruby-dev :37030 ] the message: "[ruby-dev:37030] Re: :FOO ===
"FOO" => true and case/when behavior ", on Nov/07 06:56(JST) Yukihiro
Matsumoto writes:

>まつもと ゆきひろです

>あー、バグです。Symbol#===は以前SymbolとStringの互換性を高め
>た時の名残で現在は不要なものです。直します。

動作確認しました.

>えーと、おそらくはwhenで指定した値がリテラルである場合、最適
>化が行われて、そちらは上記の「バグ」を考慮していないからでは
>ないでしょうか。

結構微妙な最適化なんですね:

case "FOO"
when :FOO
  puts 1
else
  puts 0
end

BAR = 1

case "FOO"
when BAR
  puts :BAR
when :FOO
  puts 1
else
  puts 0
end

上としたでは, when :SYMBOL の扱いが違っているんですね.

__
---------------------------------------------------->> 石塚 圭樹 <<---
---------------------------------->> e-mail: keiju@ishitsuka.com <<---

In This Thread