[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...
なかだです。
29 messages
2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line)
— "K.Kosako" <kosako@...>
2003/01/15
nobu.nakada@nifty.ne.jpさんの
[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line)
— "NAKAMURA, Hiroshi" <nakahiro@...>
2003/01/15
なひです。
[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line)
— nobu.nakada@...
2003/01/17
なかだです。
[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line)
— "NAKAMURA, Hiroshi" <nakahiro@...>
2003/01/17
なひです。
[#19387] standard ruby lib coding convension (was Re: lstripped here-document)
— "NAKAMURA, Hiroshi" <nakahiro@...>
2003/01/20
なひです。
[#19395] Re: standard ruby lib coding convension (was Re: lstripped here-document)
— "NAKAMURA, Hiroshi" <nakahiro@...>
2003/01/20
camelCaseなひです。
[#19398] Re: standard ruby lib coding convension (was Re: lstripped here-document)
— matz@... (Yukihiro Matsumoto)
2003/01/20
まつもと ゆきひろです
[#19287] Re: Class.inherited — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
4 messages
2003/01/02
[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>
もりきゅうです。win32だけかもしれません。
22 messages
2003/01/04
[#19301] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/04
こんにちは、なかむら(う)です。
[#19302] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/04
こんにちは、なかむら(う)です。
[#19303] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/04
こんにちは、なかむら(う)です。
[#19304] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/04
こんにちは、なかむら(う)です。
[#19306] Re: [BUG] errno == 0
— nobu.nakada@...
2003/01/05
なかだです。
[#19307] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/05
こんにちは、なかむら(う)です。
[#19308] Re: [BUG] errno == 0
— nobu.nakada@...
2003/01/05
なかだです。
[#19324] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/09
こんにちは、なかむら(う)です。
[#19325] Re: [BUG] errno == 0
— nobu.nakada@...
2003/01/09
なかだです。
[#19327] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/09
こんにちは、なかむら(う)です。
[#19333] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/09
こんにちは、なかむら(う)です。
[#19336] Re: [BUG] errno == 0
— nobu.nakada@...
2003/01/09
なかだです。
[#19338] Re: [BUG] errno == 0
— "U.Nakamura" <usa@...>
2003/01/09
こんにちは、なかむら(う)です。
[#19309] Re: [ruby-cvs] ruby, ruby/ext: * ext/extmk.rb (extmake): set $0 temporarily while loading — WATANABE Hirofumi <eban@...>
わたなべです。
6 messages
2003/01/05
[#19310] Re: [ruby-cvs] ruby, ruby/ext: * ext/extmk.rb (extmake): set $0 temporarily while loading
— nobu.nakada@...
2003/01/05
なかだです。
[#19317] [patch] cast for st_*. — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
6 messages
2003/01/09
[#19328] [Ruby/DL] 'S', 's' — WATANABE Hirofumi <eban@...>
わたなべです。
5 messages
2003/01/09
[#19329] [Ruby/DL] Bignum to ... — WATANABE Hirofumi <eban@...>
わたなべです。
6 messages
2003/01/09
[#19332] Re: [Ruby/DL] Bignum to ...
— Takaaki Tateishi <ttate@...>
2003/01/09
At Thu, 9 Jan 2003 16:30:59 +0900,
[#19370] shebang line of bin/* — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
7 messages
2003/01/17
[#19371] dbm.so + Berkeley DB[234] — akira yamada / やまだあきら <akira@...>
5 messages
2003/01/17
[#19405] Re: cannot find -lruby-static (PR#384) — WATANABE Hirofumi <eban@...>
わたなべです。
9 messages
2003/01/21
[#19407] Re: cannot find -lruby-static (PR#384)
— nobu.nakada@...
2003/01/21
なかだです。
[#19408] Re: cannot find -lruby-static (PR#384)
— nobu.nakada@...
2003/01/21
なかだです。
[#19410] [] 内での \001 のマッチ — WATANABE Tetsuya <tetsu@...>
渡辺哲也です。
10 messages
2003/01/22
[#19411] Re: [] 内での \001 のマッチ
— matz@... (Yukihiro Matsumoto)
2003/01/22
まつもと ゆきひろです
[#19423] Numeric#quo — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
6 messages
2003/01/23
[#19430] HAVE_* macros — "Akinori MUSHA" <knu@...>
拡張ライブラリで 1.6/1.8 に両対応する際、以下のようなマクロが
10 messages
2003/01/24
[#19431] Re: HAVE_* macros
— matz@... (Yukihiro Matsumoto)
2003/01/24
まつもと ゆきひろです
[#19433] Re: HAVE_* macros
— "Akinori MUSHA" <knu@...>
2003/01/24
At Fri, 24 Jan 2003 22:08:48 +0900,
[#19437] recursive dryrun (Re: [ruby-cvs] ruby, ruby/ext, ruby/win32, ruby/bcc32: * instruby.rb, ext/extmk.rb, Makefile.in, win32/Makefile.sub,) — nobu.nakada@...
なかだです。
6 messages
2003/01/25
[#19441] Integer#gcd — masaki <GEC01122@...>
11 messages
2003/01/26
[#20244] Re: Integer#gcd
— matz@... (Yukihiro Matsumoto)
2003/05/20
まつもと ゆきひろです
[#20246] Re: Integer#gcd
— Shin-ichiro HARA <sinara@...>
2003/05/20
原です。
[ruby-dev:19447] shim/ruby16 patch
From:
Kazuhiro NISHIYAMA <zn@...>
Date:
2003-01-31 18:06:09 UTC
List:
ruby-dev #19447
西山和広です。
Regexp#eql?, Regexp#hashが気になっていたのでshimを
ちょっといじってみたパッチです。
test caseが足りないので適当になおして取り込んでください。
* test17をtest18に。
* make test16でFが出たのを修正。
* Regexp#eql?, Regexp#hash
Index: Makefile
===================================================================
RCS file: /src/shim/ruby16/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile 11 Sep 2002 06:42:13 -0000 1.12
+++ Makefile 31 Jan 2003 17:53:02 -0000
@@ -47,5 +47,5 @@ test: $(SETUP_COOKIE)
test16:
$(MAKE) RUBY=ruby16 test
-test17:
- $(MAKE) RUBY=ruby17 test
+test18:
+ $(MAKE) RUBY=ruby18 test
Index: lib/features/ruby18/proc.rb
===================================================================
RCS file: /src/shim/ruby16/lib/features/ruby18/proc.rb,v
retrieving revision 1.4
diff -u -p -r1.4 proc.rb
--- lib/features/ruby18/proc.rb 16 Apr 2002 00:22:54 -0000 1.4
+++ lib/features/ruby18/proc.rb 31 Jan 2003 17:53:02 -0000
@@ -4,11 +4,13 @@ require 'features/ruby18/base'
class Proc
def self.__ruby18_yield(args)
- yield(*args)
+ yield(args)
end
def yield(*args)
- if args.empty? or [nil] == args
+ if args.empty?
call
+ elsif [nil] == args
+ call(nil)
else
type.__ruby18_yield(args, &self)
end
Index: lib/features/ruby18/regexp.rb
===================================================================
RCS file: /src/shim/ruby16/lib/features/ruby18/regexp.rb,v
retrieving revision 1.4
diff -u -p -r1.4 regexp.rb
--- lib/features/ruby18/regexp.rb 11 Sep 2002 07:10:04 -0000 1.4
+++ lib/features/ruby18/regexp.rb 31 Jan 2003 17:53:02 -0000
@@ -3,6 +3,15 @@
require 'features/ruby18/base'
class Regexp
+ def eql?(o)
+ return false unless o.is_a?(Regexp)
+ source.eql?(o.source)
+ end
+
+ def hash
+ source.hash
+ end
+
def options
str = inspect
pos = str.rindex(?/) + 1
Index: tests/features/ruby18/tc_proc.rb
===================================================================
RCS file: /src/shim/ruby16/tests/features/ruby18/tc_proc.rb,v
retrieving revision 1.4
diff -u -p -r1.4 tc_proc.rb
--- tests/features/ruby18/tc_proc.rb 16 Apr 2002 00:21:08 -0000 1.4
+++ tests/features/ruby18/tc_proc.rb 31 Jan 2003 17:53:02 -0000
@@ -84,8 +84,8 @@ class TC_Proc < Test::Unit::TestCase
def test_yield_m
f = proc {|*x| x}
assert_equal([], f.yield())
- assert_equal([], f.yield([]))
- assert_equal([], f.yield(nil))
- assert_equal([1], f.yield([1]))
+ assert_equal([[]], f.yield([]))
+ assert_equal([nil], f.yield(nil))
+ assert_equal([[1]], f.yield([1]))
end
end
Index: tests/features/ruby18/tc_regexp.rb
===================================================================
RCS file: /src/shim/ruby16/tests/features/ruby18/tc_regexp.rb,v
retrieving revision 1.4
diff -u -p -r1.4 tc_regexp.rb
--- tests/features/ruby18/tc_regexp.rb 11 Sep 2002 07:10:04 -0000 1.4
+++ tests/features/ruby18/tc_regexp.rb 31 Jan 2003 17:53:02 -0000
@@ -6,6 +6,14 @@ begin
rescue LoadError; end
class TC_Regexp < Test::Unit::TestCase
+ def test_eql?
+ assert(/a/.eql?(/a/))
+ end
+
+ def test_hash
+ assert_equal(/a/.hash, /a/.hash)
+ end
+
def test_options
re = /a/
--
|ZnZ(ゼット エヌ ゼット)
|西山和広(Kazuhiro NISHIYAMA)