[#35688] サブクラスのオブジェクト生成時に、スーパークラスの初期化を行うには ? — Onodera Takafumi <onodera-tak@...>

9 messages 2002/08/01

[#35772] Unsecure world writeable dirの警告 — "井上 浩一" <kyoui32@...>

井上です。

31 messages 2002/08/26
[#35774] Re: Unsecure world writeable dir の警告 — matz@... (Yukihiro Matsumoto) 2002/08/26

まつもと ゆきひろです

[#35775] Re: Unsecure world writeabledir の警告 — nobu.nakada@... 2002/08/26

なかだです。

[#35776] Re: Unsecure world writeabledir の警告 — matz@... (Yukihiro Matsumoto) 2002/08/26

まつもと ゆきひろです

[#35778] Re: Unsecure world writeabledir の警告 — nobu.nakada@... 2002/08/26

なかだです。

[#35779] Re: Unsecure world writeabledir の警告 — WATANABE Hirofumi <eban@...> 2002/08/26

わたなべです。

[#35780] Re: Unsecure world writeabledir の警告 — nobu.nakada@... 2002/08/26

なかだです。

[#35784] Re: Unsecure world writeabledir の警告 — "U.Nakamura" <usa@...> 2002/08/26

こんにちは、なかむら(う)です。

[#35854] Re: Unsecure world writeabledir の警告 — "Inoue" <rubyist@...1.117.ne.jp> 2002/09/04

井上です。

[#35865] Re: Unsecure world writeabledir の警告 — Koji Arai <JCA02266@...> 2002/09/05

新井です。

[#35866] Re: Unsecure world writeabledir の警告 — matz@... (Yukihiro Matsumoto) 2002/09/06

まつもと ゆきひろです

[#35789] multipart な CGI を速くしたい — Takashi Kanai <kanai@...4u.or.jp>

Windows上でRubyとMySQLを使ってショッピングサイトのようなものを作って

17 messages 2002/08/28

[ruby-list:35702] Re: import-module (Re: Re: scope-in-state)

From: sinara@...
Date: 2002-08-02 15:02:02 UTC
List: ruby-list #35702
In message "[ruby-list:35701] Re: import-module (Re: Re: scope-in-state)"
    on 02/08/02, 石塚圭樹 <keiju@rational.com> writes:

>けいじゅ@日本ラショナルソフトウェアです.

>原さんのimport-moduleはscope-in-stateのベースとなった, class-in-state
>と近いと思います.

class-in-state ってオブジェクト毎ですよね。import-module は当該クラスの
全てのインスタンスの挙動を変えるので、むしろ scope-in-stateに近いんじゃ
ないですかね。

  require "matrix"
  require "rational"
  require "import-module"

  module RationalDiv
    def /(other)
      Rational(self, other)
    end
  end

  a = Matrix[[2, 1], [3, 1]]
  puts a.det   #=> 0
  Fixnum.import_module(RationalDiv) do
    puts a.det #=> -1
  end
  puts a.det   #=> 0

In This Thread