[#20320] Apollo.exeでsingleton_method_addedが効かない — Kazuhiro Yoshida <moriq@...>
もりきゅうです。
5 messages
2003/06/03
[#20335] 1.8 gsub — "H.Suzuki" <hsuzux@...>
hsuzu といいます。
7 messages
2003/06/08
[#20347] 1.8.0 preview3 schedule — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
14 messages
2003/06/14
[#20357] Re: 1.8.0 preview3 schedule
— Koji Arai <JCA02266@...>
2003/06/16
新井です。
[#20358] Re: 1.8.0 preview3 schedule
— matz@... (Yukihiro Matsumoto)
2003/06/17
まつもと ゆきひろです
[#20360] Re: 1.8.0 preview3 schedule
— Koji Arai <JCA02266@...>
2003/06/17
新井です。
[#20362] [Oniguruma] quoting substring — kkosako@...
PerlとJavaの正規表現で実現されている
7 messages
2003/06/18
[#20389] Re: [Oniguruma] quoting substring
— Tanaka Akira <akr@...17n.org>
2003/06/19
In article <5FD2F0CF7F5D7F44B00F36870B9E78B508DE5040@SBG-EX4>,
[#20395] Re: [Oniguruma] quoting substring
— Tanaka Akira <akr@...17n.org>
2003/06/20
In article <87u1aloqtq.fsf@serein.a02.aist.go.jp>,
[#20374] case sensitivity of the names of environment variables — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
5 messages
2003/06/19
[#20379] locale and Marshal — Masao Mutoh <mutoh@...>
むとうです。
11 messages
2003/06/19
[#20381] Re: locale and Marshal
— matz@... (Yukihiro Matsumoto)
2003/06/19
まつもと ゆきひろです
[#20392] [BigDecimal] proposal to change specification — "Tadashi Saito" <shiba@...2.accsnet.ne.jp>
斎藤と申します。
25 messages
2003/06/20
[#20407] Re: [BigDecimal] proposal to change specification
— "Shigeo Kobayashi" <shigeo@...>
2003/06/22
小林です。
[#20412] Re: In 1.8.0 nil.to_s is not the same as "" — nobu.nakada@...
なかだです。
5 messages
2003/06/23
[#20416] ruby 1.8.0 preview3 — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
11 messages
2003/06/23
[#20422] [BUG] SEGV on Alpha (Re: ruby 1.8.0 preview3)
— Minero Aoki <aamine@...>
2003/06/23
青木です。
[#20424] Re: [BUG] SEGV on Alpha (Re: ruby 1.8.0 preview3)
— matz@... (Yukihiro Matsumoto)
2003/06/23
まつもと ゆきひろです
[#20445] Re: *.soの autoload(PR#504) — nobu.nakada@...
なかだです。
13 messages
2003/06/24
[#20450] Re: *.soの autoload(PR#504)
— matz@... (Yukihiro Matsumoto)
2003/06/25
まつもと ゆきひろです
[#20451] Re: *.soの autoload(PR#504)
— Minero Aoki <aamine@...>
2003/06/25
青木です。
[#20454] Re: *.soのautoload(PR#504)
— nobu.nakada@...
2003/06/25
なかだです。
[#20455] Re: *.soのautoload(PR#504)
— Minero Aoki <aamine@...>
2003/06/25
青木です。
[#20457] Re: *.soのautoload(PR#504)
— matz@... (Yukihiro Matsumoto)
2003/06/25
[#20447] [BigDecimal] renaming proposal — "Tadashi Saito" <shiba@...2.accsnet.ne.jp>
斎藤です。
47 messages
2003/06/24
[#20598] Re: [BigDecimal] renaming proposal
— "Shigeo Kobayashi" <shigeo@...>
2003/07/10
小林です、またまたまとめて。
[#20600] Re: [BigDecimal] renaming proposal
— matz@... (Yukihiro Matsumoto)
2003/07/10
まつもと ゆきひろです
[#20621] Re: [BigDecimal] renaming proposal
— "Shigeo Kobayashi" <shigeo@...>
2003/07/11
小林@MAILチェック中です。
[#20628] Re: [BigDecimal] renaming proposal
— "Shigeo Kobayashi" <shigeo@...>
2003/07/11
小林です。
[#20648] Re: [BigDecimal] 標準添付案 [Re: Re: [BigDecimal] renaming proposal]
— "Shigeo Kobayashi" <shigeo@...>
2003/07/13
小林です。
[#20649] Re: [BigDecimal] 標準添付案
— "Shigeo Kobayashi" <shigeo@...>
2003/07/13
小林です。
[#20692] Re: [BigDecimal] 標準添付案 [Re: Re: [BigDecimal] renaming proposal]
— "Shigeo Kobayashi" <shigeo@...>
2003/07/16
小林です。
[#20462] 原因不明のSEGV — "yamamoto madoka" <dan@...2.so-net.ne.jp>
山本ともうします。
15 messages
2003/06/26
[#20473] Re: 原因不明のSEGV
— "yamamoto madoka" <dan@...2.so-net.ne.jp>
2003/06/27
山本です。
[#20474] Re: 原因不明のSEGV
— nobu.nakada@...
2003/06/27
なかだです。
[ruby-dev:20357] Re: 1.8.0 preview3 schedule
From:
Koji Arai <JCA02266@...>
Date:
2003-06-16 17:31:58 UTC
List:
ruby-dev #20357
新井です。
In message "[ruby-dev:20347] 1.8.0 preview3 schedule"
on Sat, 14 Jun 2003 21:26:13 +0900,
matz@ruby-lang.org (Yukihiro Matsumoto) wrote:
> まつもと ゆきひろです
> まだ確定してない重要な変更はBlockとProcの分離です。現在の仕様は確定で
> はありません。Blockに合わせた変更は行わないでください。月曜までには決
> 心します。おそらくBlockというクラスはなくなります。
ruby 1.8.0 (2003-06-16) [i586-linux]
ですが、まだ Block という単語がソース上にあります。
% grep -n Block *.[ch]
eval.c:96:VALUE rb_cBlock, rb_cProc;
eval.c:6841: proc ? "Proc" : "Block");
eval.c:7152: b = rb_check_convert_type(block, T_DATA, "Block", "to_proc");
eval.c:7154: rb_raise(rb_eTypeError, "wrong argument type %s (expected Block)",
eval.c:7583: rb_raise(rb_eTypeError, "wrong argument type %s (expected Block/Method)",
eval.c:7605: rb_raise(rb_eTypeError, "wrong argument type (expected Block/Method)");
eval.c:7636: rb_cBlock = rb_cProc;
ruby.h:578:RUBY_EXTERN VALUE rb_cBlock;
それはそれとして、結局 1.6 から比べて何が変わったか解説して
いただけるととてもありがたいです。
・内部的に Block と Proc を区別するようになったが、外見えはいずれもProc?
・ Blockは引数チェックがゆるい。breakやnextが例外になる
・ Procは引数チェックが厳しい。breakやnextは実行の中断
・Proc.new は Proc を生成して、lambda、proc は Block を生成する?
・今まで、rb_f_lambda() だったものは代わりに rb_block_proc() を使うべき?
Proc.new {|a,b| p [a,b]}.call(1,2,3)
=> -:1: wrong # of arguments (3 for 2) (ArgumentError)
from -:1:in `call'
from -:1
ruby 1.6.8 (2002-12-24) [i586-linux]
=> ruby 1.8.0 (2003-06-16) [i586-linux]
[1, 2]
lambda {|a,b| p [a,b]}.call(1,2,3)
=> -:1: wrong # of arguments (3 for 2) (ArgumentError)
from -:1:in `call'
from -:1
ruby 1.6.8 (2002-12-24) [i586-linux]
=> -:1: wrong number of arguments (3 for 2) (ArgumentError)
from -:1:in `call'
from -:1
ruby 1.8.0 (2003-06-16) [i586-linux]
と、Proc.new の方が引数チェックが緩いですね
Proc.new {|a| p a}.call(1,2,3)
=> ruby 1.6.8 (2002-12-24) [i586-linux]
[1, 2, 3]
=> -:1: warning: multiple values for a block parameter (3 for 1)
ruby 1.8.0 (2003-06-16) [i586-linux]
[1, 2, 3]
lambda {|a| p a}.call(1,2,3)
=> ruby 1.6.8 (2002-12-24) [i586-linux]
[1, 2, 3]
=> -:1: warning: multiple values for a block parameter (3 for 1)
ruby 1.8.0 (2003-06-16) [i586-linux]
[1, 2, 3]
と、ブロックパラメータが一つの場合、いずれも警告が出るのはよくわかりません。
私、勘違いしてる可能性が高いです。
--
新井康司 (Koji Arai)