[#30408] Ruby 1.8.6 preview2 has been released — "Akinori MUSHA" <knu@...>

 Ruby 1.8.6 preview2 をリリースしました。

20 messages 2007/02/24
[#30414] fail to autoload at $SAFE==4 (Re: Ruby 1.8.6 preview2 has been released) — Hidetoshi NAGAI <nagai@...> 2007/02/25

永井@知能.九工大です.

[#30418] Re: fail to autoload at $SAFE==4 (Re: Ruby 1.8.6 preview2 has been released) — Nobuyoshi Nakada <nobu@...> 2007/02/25

なかだです。

[ruby-dev:30275] Re: 質問: 関数風メソッド呼び出しのYARV命令列について

From: Yukihiro Matsumoto <matz@...>
Date: 2007-02-05 23:57:16 UTC
List: ruby-dev #30275
まつもと ゆきひろです

In message "Re: [ruby-dev:30257] Re: 質問: 関数風メソッド呼び出しのYARV命令列について"
    on Mon, 5 Feb 2007 05:04:58 +0900, SASADA Koichi <ko1@atdot.net> writes:

| 参考までに,今はどんな感じなんでしょうか.ruby-core の議論は沈静化した
|ような感じですが,議論は発散した気がします.高橋さんが大反対していたの
|で,その反対派応援メッセージを待ちたいところ.

今は3案並立というところでしょうか。[ruby-core:10054]

(a) my original proposal

  - functional style call will look for

    (1) private methods up from defining class to Kernel
    (2) public methods up from the receiver's class to Kernel if not
        found in step 1.

  - ordinary style call will look for

    (3) public methods up from the receiver's class to Kernel.  private
        methods will be skipped.

欠点: 遅い(メソッドサーチ2回)
備考: 少なくとも達成したいことは満たしている

(b) Charles Nutter's proposal

  - functional style call will look for

    (1) any methods up from defining class to Kernel

  - ordinary style call will look for

    (2) he didn't say anything about this, either skipping private
        methods or raise error as we have today.

利点: 速い
備考: functional styleはオーバライドされない。
      privateはpublicは隠す?

(c) Evan Phoenix's proposal

  - functional style call will look for

    (1) private methods in the defining class/module.
    (2) any methods up from the receiver's class to Kernel if not
        found.

  - ordinary style call will look for

    (3) he didn't say anything about this, either skipping private
        methods or raise error as we have today.

利点: 速い(bよりは遅い)
備考: privateは継承しない(のはアリか?)
      matzrubyの(実験的な)local visibilityとほぼ同じ

In This Thread

Prev Next