[#8824] [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro)

ごとけんです

38 messages 2000/01/05
[#8839] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — matz@... (Yukihiro Matsumoto) 2000/01/06

まつもと ゆきひろです

[#8842] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro) 2000/01/06

ごとけんです

[#8843] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — matz@... (Yukihiro Matsumoto) 2000/01/06

まつもと ゆきひろです

[#8844] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro) 2000/01/06

ごとけんです

[#8846] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — matz@... (Yukihiro Matsumoto) 2000/01/06

まつもと ゆきひろです

[#8847] Re: [REQ] Integer#{hex,dec,oct,bin}, String#bin — gotoken@... (GOTO Kentaro) 2000/01/06

ごとけんです

[#8893] Re: [ruby-list:20142] Re: Range expansion? — Akinori MUSHA aka knu <knu@...>

 knuです。ruby-listから舞台を移しました。

13 messages 2000/01/09

[#8980] 1.4.3 patch for near-future *BSD IPv6 support — Jun-ichiro itojun Hagino <itojun@...>

近い将来の{Net,Free,Open}BSDにはKAME IPv6 stackが統合されています。

17 messages 2000/01/20
[#8981] Re: 1.4.3 patch for near-future *BSD IPv6 support — Jun-ichiro itojun Hagino <itojun@...> 2000/01/20

> それから、

[ruby-dev:8922] Re: [ruby-list:20142] Re: Range expansion?

From: nobu.nakada@...
Date: 2000-01-12 14:03:14 UTC
List: ruby-dev #8922
なかだです。

At Wed, 12 Jan 2000 14:57:56 +0900,
Shugo Maeda <shugo@netlab.co.jp> wrote:
> 前のは捨てて、次のパッチでよいのかな。
> # とりあえず、make testは通りましたけど…。

  うまく行くようです。

$ ruby -e 'foo = (1..3).to_a' -e 'p foo[*[0,2]]=[]' -e 'p foo'
2
[2, 2, 3]
$ ruby -e 'foo = Object.new' -e 'def foo.[]=(*args) p args; end' -e 'foo[1,2]=[]'
[1, 2, []]
$ ruby -e 'foo = Object.new' -e 'def foo.[]=(*args) p args; end' -e 'foo[*[1,2]]=[]'
[1, 2]

$ ./miniruby -e 'foo = (1..3).to_a' -e 'p foo[*[0,2]]=[]' -e 'p foo'
[]
[3]
$ ./miniruby -e 'foo = Object.new' -e 'def foo.[]=(*args) p args; end' -e 'foo[1,2]=[]'
[1, 2, []]
$ ./miniruby -e 'foo = Object.new' -e 'def foo.[]=(*args) p args; end' -e 'foo[*[1,2]]=[]'
[1, 2, []]

やはり後者の方が自然に思えますね。

-- 
そうだ 強気に ちょっと インチキに☆彡
    中田 "Bugるくらいがちょうどいいかも;-)" 伸悦

In This Thread