From: Jim Freeze Date: 2003-05-09T07:04:40+09:00 Subject: Re: Can a global be a constant? On Friday, 9 May 2003 at 7:01:04 +0900, dblack@superlink.net wrote: > Hi -- > > On Fri, 9 May 2003, Jim Freeze wrote: > > > Hi > > > Because a capitalized global variable is a variable :-) > > Same thing with instance variables: > > $ ruby -e "A=1; A=2; @B=1; @B=2" > -e:1: warning: already initialized constant A > > Once something doesn't begin with [A-Z], it can't be a constant. Ok. I didn't realize that $, @, and @@ were considered part of the name. Makes sense now. -- Jim Freeze ---------- All of the true things I am about to tell you are shameless lies. -- The Book of Bokonon / Kurt Vonnegut Jr.