From: Shadowfirebird Date: 2008-07-23T21:46:05+09:00 Subject: Re: circular 'require' I did indeed miss something out from the code I originally posted -- but it was an inheritance, not something executable. the definition of One in testa.rb should read "Class One < Two". (See my earlier post.) On Wed, Jul 23, 2008 at 1:32 PM, Calamitas wrote: > On Wed, Jul 23, 2008 at 1:47 PM, Shadowfirebird > wrote: >> *Is* there any executable code in my two example programs, other than >> the "require"s? > > The code you posted here works as is. Nowhere is the reference to Two > executed *in the code you posted*. If I execute your code *as you > posted it here*, it doesn't raise the exception, it only gives some > warnings about redefining methods. Note that he error message you > posted refers to a reference to the constant Two in line 4, but in the > code *you posted here*, the only reference is on line 3. So I can only > assume that the error you get is caused by some code you have cut out > before you posted. Something needed to call one.testone, but it is not > *in the code you posted*. You *must* have had executable code when you > got that error. > > Peter > > -- Me, I imagine places that I have never seen / The colored lights in fountains, blue and green / And I imagine places that I will never go / Behind these clouds that hang here dark and low But it's there when I'm holding you / There when I'm sleeping too / There when there's nothing left of me / Hanging out behind the burned-out factories / Out of reach but leading me / Into the beautiful sea