From: keiju@... (=?ISO-2022-JP?B?GyRCQFBETTc9PHkbKEI=?=) Date: 2002-08-05T00:50:17+09:00 Subject: [ruby-list:35705] Re: import-module (Re: Re: scope-in-state) けいじゅ@日本ラショナルソフトウェアです. In [ruby-list:35702] the message: "[ruby-list:35702] Re: import-module (Re: Re: scope-in-state)", on Aug/03 00:02(JST) sinara@blade.nagaokaut.ac.jp writes: >>原さんのimport-moduleはscope-in-stateのベースとなった, class-in-state >>と近いと思います. > >class-in-state ってオブジェクト毎ですよね。 です. >import-module は当該クラスの全てのインスタンスの挙動を変えるので、む >しろ scope-in-stateに近いんじゃないですかね。 私の感覚からすると, 原さんのimport-module, class-in-stateと scope-in-stateの共通部分というか最大公約数という感じですかね. 私の場合, class-in-stateがまずあったので, そのサブセットっぽい import-module相当のもので求めるものを実現するのはあまり意味を感じなかっ たです. ですので, 複数のクラスの振る舞いをまとめて変えられる scope-in-stateというものになりました. で, scope-in-state相当のものをrubyに標準採用しようという話が出ているの で, それに対する案, つまりはscope-in-stateの対抗案と考えてよろしいので しょうか? __ ..............................石塚 圭樹@日本ラショナルソフトウェア... ----------------------------------->> e-mail: keiju@rational.com <<---