[#37762] tcltklibの作りかた — Mitsuo Igarashi <mitsu5@...>
mitsu5 です。
8 messages
2003/06/07
[#37774] Ruby/zlibのインストール方法はどのようにするのですか? — "igusa" <igusa@...>
いぐさです。
6 messages
2003/06/09
[#37801] 動的に生成したクラスメソッドのundef — Ryuichiro Hara <r@...>
動的に生成したメソッドを除く方法を知りたく質問します。
6 messages
2003/06/19
[#37814] Re: Oniguruma and PHP — kkosako@...
> スラッシュドットでも話題になっていましたが、Onigurumaを
1 message
2003/06/23
[#37815] 配列の使い方 — Kouji Miyauchi <koji.miyauchi@...>
宮内と申します。
9 messages
2003/06/23
[#37830] reference from nested class to a constant in a module included by the parent class — NISHIMATSU Takeshi <t-nissie@...>
西松と申します.
6 messages
2003/06/27
[#37838] Raccのインストールについて (MacOS X) — "Ken'ichiro Nakatani" <kenzo@...>
はじめまして。中谷と申します。
8 messages
2003/06/27
[ruby-list:37835] Re: reference from nested class to a constant in a module included by the parent class
From:
Minero Aoki <aamine@...>
Date:
2003-06-27 19:53:05 UTC
List:
ruby-list #37835
青木です。
In mail "[ruby-list:37834] Re: reference from nested class to a constant in a module included by the parent class"
NISHIMATSU Takeshi <t-nissie@imr.tohoku.ac.jp> wrote:
> 西松です.
> > 自分で定義されたもの
> > その外側のクラスで定義されたもの
> > そのまた外側で定義されたもの(以下トップレベルまで続く、トップレベル含まない)
> > スーパークラスで定義されたもの
> > そのスーパークラスで定義されたもの(以下Objectまで続く、Object含まない)
> お返事をありがとうございます. この場合,
> 下の例の★はどの条件に合致していると考えればよいのでしょうか.
> module M
> ConstM = "M"
> end
> class Parent
> ConstP = "P"
> include M
> p ConstP # => "P"
> p M::ConstM # => "M"
> p ConstM # => "M" ★
四つめの「スーパークラスで定義されたもの」です。
include は実質的に継承と等しいので、スーパークラスと言うと
たいていは include したモジュールのことも含みます。
-------------------------------------------------------------------
青木峰郎