[#41772] [Feature #3513] spawn ..., err: nil — Shyouhei Urabe <redmine@...>
Feature #3513: spawn ..., err: nil
10 messages
2010/07/01
[#41773] Re: [Feature #3513] spawn ..., err: nil
— Tanaka Akira <akr@...>
2010/07/01
2010年7月1日19:09 Shyouhei Urabe <redmine@ruby-lang.org>:
[#41780] Re: [Feature #3513] spawn ..., err: nil
— Urabe Shyouhei <shyouhei@...>
2010/07/02
卜部です。
[#41774] 動的ローディングの仕様について — Hidetoshi NAGAI <nagai@...>
永井@知能.九工大です.
7 messages
2010/07/01
[#41778] [Bug #3515] FreeBSD wrongly raises ECONNRESET on close(2) — Yui NARUSE <redmine@...>
Bug #3515: FreeBSD wrongly raises ECONNRESET on close(2)
12 messages
2010/07/02
[#41826] Re: [Bug #3515] FreeBSD wrongly raises ECONNRESET on close(2)
— Tanaka Akira <akr@...>
2010/07/06
2010年7月2日12:20 Yui NARUSE <redmine@ruby-lang.org>:
[#41828] Re: [Bug #3515] FreeBSD wrongly raises ECONNRESET on close(2)
— Takahiro Kambe <taca@...>
2010/07/06
In message <AANLkTimD2geIuuhr0GQZ4fprYTv3m4kuESajvsrxaItm@mail.gmail.com>
[#41782] [Bug #3522] String::size return invalid size on mswin64 — shintaro kuwamoto <redmine@...>
Bug #3522: String::size return invalid size on mswin64
5 messages
2010/07/02
[#41800] Tempfile#size returns 0 under windows — take_tk <ggb03124@...>
たけ(tk)です。
6 messages
2010/07/03
[#41833] [bug:trunk] GNU/Linux select hang on a socket which TCP state is CLOSED — Tanaka Akira <akr@...>
GNU/Linux で、以下のプログラムがハングします。
7 messages
2010/07/06
[#41834] Re: [bug:trunk] GNU/Linux select hang on a socket which TCP state is CLOSED
— Yukihiro Matsumoto <matz@...>
2010/07/06
まつもと ゆきひろです
[#41835] Re: [bug:trunk] GNU/Linux select hang on a socket which TCP state is CLOSED
— KOSAKI Motohiro <kosaki.motohiro@...>
2010/07/06
kosakiです
[#41856] [Bug #3579] RHEL5のautoconf-2.59だとruby-1.8.7-p299でautoconfが失敗する — Motohiro KOSAKI <redmine@...>
Bug #3579: RHEL5のautoconf-2.59だとruby-1.8.7-p299でautoconfが失敗する
5 messages
2010/07/16
[#41858] Re: [Bug #3579] RHEL5のautoconf-2.59だとruby-1.8.7-p299でautoconfが失敗する
— Nobuyoshi Nakada <nobu@...>
2010/07/17
なかだです。
[#41862] [bug:trunk] rb_data_type_t should be extensible — Nobuyoshi Nakada <nobu@...>
なかだです。
5 messages
2010/07/17
[#41876] redmine.ruby-lang.orgが落ちてる? — kimura wataru <kimuraw@...>
木村(わ)といいます。
4 messages
2010/07/25
[#41883] failed to build ext/tk of ruby-1.9.2-rc2 on Mac OS X — Yutaka Hara <yutaka.hara@...>
yharaです。
6 messages
2010/07/28
[#41884] Re: failed to build ext/tk of ruby-1.9.2-rc2 on Mac OS X
— Hidetoshi NAGAI <nagai@...>
2010/07/28
永井@知能.九工大です.
[#41892] [Feature #3627] catchのブロックを再実行するメソッド — Makoto Kishimoto <redmine@...>
Feature #3627: catchのブロックを再実行するメソッド
6 messages
2010/07/29
[#41893] thread.bind(sym, val) { ... } — Tanaka Akira <akr@...>
スレッド変数を一時的に設定するメソッドを加えるのはどうでしょうか。
7 messages
2010/07/29
[ruby-dev:41837] Re: respond_to?(<protected method name>) returns true
From:
Marc-Andre Lafortune <ruby-core-mailing-list@...>
Date:
2010-07-06 17:31:28 UTC
List:
ruby-dev #41837
Hi,
On Tue, Jul 6, 2010 at 1:23 AM, Yukihiro Matsumoto <matz@ruby-lang.org> wro=
te:
> It's accepted.
Great.
> Some RubySpec test failures are caused by this
> change. =A0We should fix them after the change is checked in. =A0Will you=
?
Yes (done for the most part).
Looking more closely at the change, it is not what I expected.
class C
protected
def is_protected; end
end
C.new.respond_to?(:is_protected, true) # =3D> false, I expected true
I feel that either `C.new.respond_to?(:is_protected, true)` should
return true, or else there should be another way to ask if a method
respond_to a protected method, say like
`C.new.respond_to?(:is_protected, :any)`
Here's a patch for the first option.
diff --git a/vm_method.c b/vm_method.c
index becce27..ea4afe4 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -566,8 +566,9 @@ rb_method_boundp(VALUE klass, ID id, int ex)
rb_method_entry_t *me =3D rb_method_entry(klass, id);
if (me !=3D 0) {
- if ((ex & NOEX_RESPONDS) && (me->flag & NOEX_PROTECTED) ||
- (ex & ~NOEX_RESPONDS) && (me->flag & NOEX_PRIVATE)) {
+ if ((ex & ~NOEX_RESPONDS) && (
+ (me->flag & NOEX_PRIVATE) ||
+ ((ex & NOEX_RESPONDS) && (me->flag & NOEX_PROTECTED)))) {
return 0;
}
if (!me->def) return 0;
@@ -1257,10 +1258,10 @@ rb_respond_to(VALUE obj, ID id)
/*
* call-seq:
- * obj.respond_to?(symbol, include_private=3Dfalse) -> true or false
+ * obj.respond_to?(symbol, include_all=3Dfalse) -> true or false
*
* Returns +true+ if _obj_ responds to the given
- * method. Private methods are included in the search only if the
+ * method. Private and protected methods are included in the search
only if the
* optional second parameter evaluates to +true+.
*
* If the method is not implemented,
@@ -1286,7 +1287,7 @@ obj_respond_to(int argc, VALUE *argv, VALUE obj)
/*
* call-seq:
- * obj.respond_to_missing?(symbol, include_private) -> true or false
+ * obj.respond_to_missing?(symbol, include_all) -> true or false
*
* Hook method to return whether the _obj_ can respond to _id_ method
* or not.