< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(自分と同じ返事先を持つ)
N :次の記事
|<:スレッドの先頭
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Calamitas <calamitates / gmail.com> writes:
> Hi,
>
> This surprised me today:
>
> irb(main):014:0> 2.times { puts "hello".object_id }
> -606413918
> -606413938
> => 2
> irb(main):015:0> 2.times { puts /hello/.object_id }
> -606420168
> -606420168
> => 2
>
> The regexp could be compiled once while parsing and a new Regexp
> object could be created on each execution with a speed hit comparable
> to string literals (which I suppose is acceptable.)
I don't see the inconsistency. Regexps are immutable anyway, so this
optimization is useful. You probably wanted Regexp.new("hello")?
> Peter
--
Christian Neukirchen <chneukirchen / gmail.com> http://chneukirchen.org