From: Charles Comstock Date: 2004-04-15T03:49:13+09:00 Subject: Re: Interesting Scoping Rules ts wrote: >>>>>>"C" == Charles Comstock writes: > > > C> also curious is that > > try this :-) > > C> class A > C> @a = "me" > C> class B > C> puts @a > C> end > C> end > > class A > C = "C" > class B > puts C > end > end > > > Guy Decoux > > > > > Right but the whole reasoning for doing something like that would be to effect it later. This is wrong though in my opinion, if local vars get lost in a change of class/def then why should constants go through these barriers. Anyone else have thoughts on this? Charlie