From: mengx@... Date: 2002-01-31T22:51:04+09:00 Subject: Re: strange behavior That was actually what I meant. The inner module should have the same access to Both AA and CC. "include" should have the same effect as "physically include", i.e. as if the included module were copy and pasted into the calling module( so that one does not have to type it all over again.) Thanks -Ted > > |I think the problem here may be how "include" works. > | > |In this example, at runtime, A.constants => ['CC', 'AA'] > | > |In module B, AA is accessible but CC is not. > > Have you tried B.constants? B.constants => [] > Referring constants are either > > * constants belong to the class/module > * constants belong to outer scope > > "include" only affects the former. > > matz.>