[#9331] initialize arguments — WATANABE Hirofumi <Hirofumi.Watanabe@...>
わたなべです.
10 messages
2000/03/01
[#9332] Re: initialize arguments
— WATANABE Tetsuya <tetsu@...>
2000/03/01
渡辺哲也です。
[#9377] Hash.new('') — WATANABE Tetsuya <tetsu@...>
渡辺哲也です。
11 messages
2000/03/06
[#9383] rb_call_super() — Yasushi Shoji <yashi@...>
やすしです。
10 messages
2000/03/06
[#9388] Re: rb_call_super()
— Kazuhiro HIWADA <hiwada@...>
2000/03/07
ひわだです。
[#9395] Re: rb_call_super()
— matz@... (Yukihiro Matsumoto)
2000/03/07
まつもと ゆきひろです
[#9398] Re: rb_call_super()
— Yasushi Shoji <yashi@...>
2000/03/07
やすしです。
[#9393] [PATCH] Symbol.new — nobu.nakada@...
なかだです。
13 messages
2000/03/07
[#9396] Re: [PATCH] Symbol.new
— matz@... (Yukihiro Matsumoto)
2000/03/07
まつもと ゆきひろです
[#9424] method_missing(Fixnum) — nobu.nakada@...
なかだです。
5 messages
2000/03/11
[#9430] [BUG] Process.kill :symbol, pid — Koji Arai <JCA02266@...>
新井です。
5 messages
2000/03/12
[#9445] thread.rb — m_seki@...
18 messages
2000/03/16
[#9446] Re: thread.rb
— matz@... (Yukihiro Matsumoto)
2000/03/17
[#9460] Re: thread.rb
— m_seki@...
2000/03/21
[#9462] Re: thread.rb
— matz@... (Yukihiro Matsumoto)
2000/03/21
まつもと ゆきひろです
[#11281] Re: thread.rb
— Masatoshi SEKI <m_seki@...>
2000/10/22
[#11282] Re: thread.rb
— Yasushi Shoji <yashi@...>
2000/10/22
At Mon, 23 Oct 2000 00:14:30 +0900,
[#11283] Re: thread.rb
— Masatoshi SEKI <m_seki@...>
2000/10/22
[#11284] Re: thread.rb
— Yasushi Shoji <yashi@...>
2000/10/22
At Mon, 23 Oct 2000 01:40:14 +0900,
[#11288] sync/async message passing model (was Re: Re: thread.rb)
— kjana@... (YANAGAWA Kazuhisa)
2000/10/23
In message <20001022171627N.yashi@yashi.com>
[#11291] Re: sync/async message passing model (was Re: Re: thread.rb)
— kjana@... (YANAGAWA Kazuhisa)
2000/10/24
追加,追加.
[#9447] ParseDate.parsedate( "2000-03-16T23:45:54+0900" ) — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです.
10 messages
2000/03/17
[#9448] Re: ParseDate.parsedate( "2000-03-16T23:45:54+0900" )
— Tadayoshi Funaba <tadf@...>
2000/03/17
ふなばです。
[#9449] Re: ParseDate.parsedate( "2000-03-16T23:45:54+0900" )
— matz@... (Yukihiro Matsumoto)
2000/03/18
まつもと ゆきひろです
[#9451] Re: ParseDate.parsedate( "2000-03-16T23:45:54+0900" )
— Tadayoshi Funaba <tadf@...>
2000/03/18
ふなばです。
[#9473] Symbol#<=> — Koji Arai <JCA02266@...>
新井です。
12 messages
2000/03/23
[#9477] Re: Symbol#<=>
— matz@... (Yukihiro Matsumoto)
2000/03/24
まつもと ゆきひろです
[#9483] Re: Symbol#<=>
— Koji Arai <JCA02266@...>
2000/03/24
新井です。
[#9489] parsedate2 — Tadayoshi Funaba <tadf@...>
ふなばです。
7 messages
2000/03/25
[#9498] timeout しない timeout — ARIMA Yasuhiro <fit0298@...>
有馬です。
20 messages
2000/03/26
[#9506] Re: timeout しない timeout
— matz@... (Yukihiro Matsumoto)
2000/03/27
まつもと ゆきひろです
[#9509] Re: timeout しない timeout
— gotoken@... (GOTO Kentaro)
2000/03/27
In message "[ruby-dev:9506] Re: timeout しない timeout"
[#9511] Re: timeout しない timeout
— matz@... (Yukihiro Matsumoto)
2000/03/27
まつもと ゆきひろです
[#9512] Re: timeout しない timeout
— ARIMA Yasuhiro <fit0298@...>
2000/03/27
有馬です。
[#9524] Re: timeout しない timeout
— ARIMA Yasuhiro <fit0298@...>
2000/03/29
有馬です。
[#9525] Re: timeout しない timeout
— gotoken@... (GOTO Kentaro)
2000/03/29
ごとけんです
[#9526] Re: timeout しない timeout
— ARIMA Yasuhiro <fit0298@...>
2000/03/29
有馬です。
[#9528] Re: timeout しない timeout
— gotoken@... (GOTO Kentaro)
2000/03/30
ごとけんです
[#9529] Re: timeout しない timeout
— ARIMA Yasuhiro <fit0298@...>
2000/03/30
有馬です。
[ruby-dev:9425] Re: [PATCH] Symbol.new
From:
nobu.nakada@...
Date:
2000-03-11 10:15:49 UTC
List:
ruby-dev #9425
なかだです。
At Wed, 8 Mar 2000 19:36:59 +0900,
Minero Aoki <aamine@dp.u-netsurf.ne.jp> wrote:
> > それから :sym.is_a(Integer) == true を
> > 仮定しているライブラリ・プログラムがどれくらいあるか
> > 分かりませんが、僕が遭遇したものではracc-0.11.0が
> > こんな風になってます。
>
> 報告ありがとうございます、直しておきます。
cparse.c にもあります。
diff -ru2 racc.orig/cparse/cparse.c racc/cparse/cparse.c
--- racc.orig/cparse/cparse.c Sun Feb 13 20:21:41 2000
+++ racc/cparse/cparse.c Sat Mar 11 17:02:08 2000
@@ -130,5 +130,9 @@
method_id = RARRAY(v->reduce_table)->ptr[ruleno+2];
len = FIX2LONG(reduce_len);
+#ifdef SYM2ID
+ mid = (ID)SYM2ID(method_id);
+#else
mid = (ID)FIX2LONG(method_id);
+#endif
if (len == 0) {
diff -ru2 racc.orig/raccp.rb racc/raccp.rb
--- racc.orig/raccp.rb Sun Feb 13 20:21:40 2000
+++ racc/raccp.rb Sat Mar 11 16:13:08 2000
@@ -46,7 +46,8 @@
def on_error( tok, val, _values )
- case val
- when Fixnum then v = val.id2name
- when String then v = val
+ if val.respond_to?(:id2name)
+ v = val.id2name
+ elsif String === v
+ v = val
else
v = val.inspect
@@ -176,5 +177,5 @@
def _reduce_1( val, _values, result )
@interf.end_register_rule
- @classname = (Integer === val[1]) ? val[1].id2name : val[1]
+ @classname = val[1].respond_to?(:id2name) ? val[1].id2name : val[1]
result
end
diff -ru2 racc.orig/rule.rb racc/rule.rb
--- racc.orig/rule.rb Sun Feb 13 20:21:40 2000
+++ racc/rule.rb Sat Mar 11 15:47:07 2000
@@ -526,7 +526,8 @@
def to_s # for system internal
- case @value
- when Integer then @value.id2name
- when String then @value.inspect
+ if @value.respond_to?(:id2name)
+ @value.id2name
+ else String === @value
+ @value.inspect
else
bug! "wrong token value: #{@value}(#{@value.type})"
@@ -537,5 +538,5 @@
def uneval # for output
if @conv then @conv
- elsif Integer === @value then ':' + @value.id2name
+ elsif @value.respond_to?(:id2name) then ':' + @value.id2name
elsif String === @value then @value.inspect
else
diff -ru2 racc.orig/scanner.rb racc/scanner.rb
--- racc.orig/scanner.rb Sun Feb 13 20:21:41 2000
+++ racc/scanner.rb Sat Mar 11 16:10:02 2000
@@ -98,5 +98,5 @@
printf "%7d %-10s %s\n",
@scan.restsize,
- Fixnum === s ? s.id2name : s.inspect,
+ s.respond_to(:id2name) ? s.id2name : s.inspect,
arr[1].inspect
end
--
そうだ 強気に ちょっと インチキに☆彡
中田 "Bugるくらいがちょうどいいかも;-)" 伸悦