From: sur max Date: 2007-03-14T16:17:51+09:00 Subject: Re: Where is my Class ? ------=_Part_24535_7827842.1173856647282 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline assignment happened LEFT-to-RIGHT On 3/14/07, sur max wrote: > > Hi all, > > There isn't any way to have a class name starting with lowercase letter. > > I was trying it as > > class a > end > # SyntaxError: compile error > # class/module name must be CONSTANT > > so then i tried > > a = Class.new > # # > > this shows that "a" is now a reference to the class # > the Class object > > and > B = Class.new > # B > > that works absolutely fine. > > The point is if we try to assign as > > B=a > it gives > # warning: already intialized constant B .... thats fine > > but > and now if i check a as > > a > # B > > so where is the original class of a that was # .... and > how > come the assignment happens from RIGHT-to-LEFT ? > > any idea ? > > -- > sur > "is a String object" is a String object > http://expressica.com > -- sur "is a String object" is a String object http://expressica.com ------=_Part_24535_7827842.1173856647282--