From: Austin Ziegler Date: 2002-11-12T05:00:40+09:00 Subject: Re: More fun with modules On Tue, 12 Nov 2002 04:46:43 +0900, Eric Schwartz wrote: > Okay, I *thought* I understood modules. Then I try to factor out > some common 'utility' methods into a separate file so that I don't > have to mock up some silly inheritance hierarchy just to share > functions like AddHref(below). But apparently I don't understand > how names propogate. I figured that inside TestHarness::Bah, if it > couldn't resolve the name in Bah, it would look next in > TestHarness, and then in the global namespace. Did I err? If so, > how can I get what I want? Do I need to introduce an artificial > inheritance here, or is there a way I'm not seeing to share the > code? You didn't "include" TestHarness as part of Bah. If you don't do that, then you need to fully qualify AddHref. -austin -- Austin Ziegler, austin@halostatue.ca on 2002.11.11 at 14.59.13